Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💚 ci: switch to coveralls #9

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 13 additions & 15 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,30 +61,28 @@ jobs:
run: python -m pdm install -dG test
- name: Test
run: python -m pdm run test
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: coverage-${{ matrix.platform }}-${{ matrix.python-version }}
path: reports/.coverage

upload-coverage:
runs-on: ubuntu-latest
coveralls-finish:
needs: [python-test]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install tools
run: python -m pip install coverage requests tomli
- name: Download coverage reports
uses: actions/download-artifact@v3
- name: Combine reports
run: |
coverage combine $(ls ./**/.coverage)
coverage report
coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v4
- name: Coveralls Finished
uses: coverallsapp/[email protected]
with:
files: reports/coverage.xml
parallel-finished: true
carryforward: "run-ubuntu-latest-3.10,run-ubuntu-latest-3.11,run-ubuntu-latest-3.12,run-windows-latest-3.10,run-windows-latest-3.11,run-windows-latest-3.12"


bump-version:
runs-on: ubuntu-latest
Expand Down
Loading