-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated test workflow to include upload to CodeCov for each OS, impro…
…ved Noxfile so only the last test generates coverage report, added PyPI classifiers
- Loading branch information
1 parent
72744e7
commit 09aa0e9
Showing
4 changed files
with
51 additions
and
37 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This workflow will use Nox to run tests and lint for the supported Python versions, and upload the test coverage data. | ||
|
||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- release/* | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Test on ${{ matrix.os }} with all supported Python versions | ||
runs-on: ${{ format('{0}-latest', matrix.os) }} # "-latest" is added here so we can use OS in the format expected by CodeCov | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu, macos] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run tests with Nox | ||
uses: fjwillemsen/setup-nox2@v3.0.0 | ||
- run: nox | ||
- name: Upload Coverage report to CodeCov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage | ||
os: ${{ matrix.os }} | ||
fail_ci_if_error: false # option to Specify if CI pipeline should fail when Codecov runs into errors during upload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters