Skip to content

Commit

Permalink
chore: integrate compliance tests into code coverage reporting (#288)
Browse files Browse the repository at this point in the history
* chore: integrate compliance tests into code coverage reporting

* fixing

* fixing
  • Loading branch information
chelsea-lin authored Aug 6, 2024
1 parent cf95f8d commit c2bce0b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,39 @@ jobs:
name: coverage-artifact-prerelease-${{ matrix.python }}
path: .coverage-prerelease-${{ matrix.python }}

compliance:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.12']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install nox
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install nox
- name: Run compliance tests
env:
COVERAGE_FILE: .coverage-${{ matrix.python }}
run: |
nox -s compliance-${{ matrix.python }}
- name: Upload coverage results
uses: actions/upload-artifact@v4
with:
name: coverage-artifact-compliance-${{ matrix.python }}
path: .coverage-compliance-${{ matrix.python }}

cover:
runs-on: ubuntu-latest
needs:
- unit
- unit-prerelease
- compliance
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit c2bce0b

Please sign in to comment.