Skip to content

Commit

Permalink
Better .github/workflows/ci-linux.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Jan 16, 2024
1 parent faa1689 commit d0b41bb
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pdm nox coverage
- name: Test with nox
- name: Test without Pythran
run: |
nox -s "test(with_pythran=0, with_cython=0)" "test(with_pythran=1, with_cython=0)" "test(with_pythran=0, with_cython=1)"
rm -rf .coverage
nox -s "test(with_pythran=0, with_cython=0)"
coverage combine
coverage report
coverage xml
Expand All @@ -35,3 +36,30 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false # optional (default = false)
verbose: true # optional (default = false)
files: .coverage/coverage.xml
- name: Test with Pythran
run: |
rm -rf .coverage
nox -s "test(with_pythran=1, with_cython=0)"
coverage combine
coverage report
coverage xml
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false # optional (default = false)
verbose: true # optional (default = false)
files: .coverage/coverage.xml
- name: Test with Cython
run: |
rm -rf .coverage
nox -s "test(with_pythran=0, with_cython=1)"
coverage combine
coverage report
coverage xml
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false # optional (default = false)
verbose: true # optional (default = false)
files: .coverage/coverage.xml

0 comments on commit d0b41bb

Please sign in to comment.