diff --git a/.github/workflows/ci-unit_tests.yaml b/.github/workflows/ci-unit_tests.yaml index caf03c3279..841ecf674c 100644 --- a/.github/workflows/ci-unit_tests.yaml +++ b/.github/workflows/ci-unit_tests.yaml @@ -28,12 +28,6 @@ jobs: # If you have a requirements.txt file, you can install all dependencies using: # pip install -r requirements.txt - - name: Cache Rocoto - uses: actions/cache@v4 - with: - path: ~/rocoto - key: ${{ runner.os }}-rocoto-${{ hashFiles('**/ci-unit_tests.yaml') }} - - name: Install Rocoto run: | if [ ! -d "$HOME/rocoto" ]; then @@ -43,6 +37,12 @@ jobs: fi echo "$HOME/rocoto/bin" >> $GITHUB_PATH + - name: Cache Rocoto + uses: actions/cache@v4 + with: + path: ~/rocoto + key: ${{ runner.os }}-rocoto-${{ hashFiles('**/ci-unit_tests.yaml') }} + - name: Run tests run: python -m pytest ci/scripts/tests/test_rocotostat.py -v --junitxml ci/scripts/tests/test-results.xml