-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use an artifact for the coverage report (#215)
- Loading branch information
Showing
1 changed file
with
23 additions
and
20 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -13,17 +13,17 @@ jobs: | |
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- uses: pre-commit/[email protected] | ||
|
||
mypy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install nox | ||
|
@@ -35,9 +35,9 @@ jobs: | |
needs: [lint] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: 12rambau/setup-pandoc@test | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install nox | ||
|
@@ -59,34 +59,37 @@ jobs: | |
python-version: "3.11" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install nox | ||
run: pip install nox | ||
- name: test with pytest | ||
run: nox -s test | ||
- name: assess dead fixtures | ||
if: ${{ matrix.python-version == '3.10' }} | ||
shell: bash | ||
run: nox -s dead-fixtures | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{ matrix.python-version == '3.10' }} | ||
with: | ||
name: coverage | ||
path: coverage.xml | ||
|
||
coverage: | ||
needs: [build, docs] | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install deps | ||
run: pip install nox coverage[toml] | ||
- name: test with pytest | ||
run: nox -s test | ||
- name: assess dead fixtures | ||
run: nox -s dead-fixtures | ||
- name: coverage | ||
run: coverage xml | ||
name: coverage | ||
path: coverage.xml | ||
- name: codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
file: ./coverage.xml | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true | ||
files: ./coverage.xml |