Skip to content

Commit

Permalink
CI/CD: Run examples job in parallel with coverage
Browse files Browse the repository at this point in the history
The examples are only run for tags, we can therefore be rather sure that
most stages of the pipeline will succeed. To save a little bit of time,
we can run the examples job in parallel with the other tests and
coverage, especially because the examples take quite a while to run.

Note that we add coverage as an explicit dependency to the deploy job,
and as such sill require all jobs to succeed before deploying like.
  • Loading branch information
jackvreeken committed Jan 29, 2025
1 parent f453313 commit 980a008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rtc-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
# - run: codecov --token=$CODECOV_TOKEN

examples-linux:
needs: coverage
needs: build
runs-on: ubuntu-latest
container:
image: python:${{ matrix.version }}
Expand All @@ -96,7 +96,7 @@ jobs:
- run: tox -vv

deploy:
needs: [test-linux, examples-linux]
needs: [test-linux, coverage, examples-linux]
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
permissions:
Expand Down

0 comments on commit 980a008

Please sign in to comment.