Skip to content

Commit c2bce0b

Browse files
authored
chore: integrate compliance tests into code coverage reporting (#288)
* chore: integrate compliance tests into code coverage reporting * fixing * fixing
1 parent cf95f8d commit c2bce0b

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/unittest.yml

+28
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,39 @@ jobs:
5858
name: coverage-artifact-prerelease-${{ matrix.python }}
5959
path: .coverage-prerelease-${{ matrix.python }}
6060

61+
compliance:
62+
runs-on: ubuntu-latest
63+
strategy:
64+
matrix:
65+
python: ['3.12']
66+
steps:
67+
- name: Checkout
68+
uses: actions/checkout@v4
69+
- name: Setup Python
70+
uses: actions/setup-python@v5
71+
with:
72+
python-version: ${{ matrix.python }}
73+
- name: Install nox
74+
run: |
75+
python -m pip install --upgrade setuptools pip wheel
76+
python -m pip install nox
77+
- name: Run compliance tests
78+
env:
79+
COVERAGE_FILE: .coverage-${{ matrix.python }}
80+
run: |
81+
nox -s compliance-${{ matrix.python }}
82+
- name: Upload coverage results
83+
uses: actions/upload-artifact@v4
84+
with:
85+
name: coverage-artifact-compliance-${{ matrix.python }}
86+
path: .coverage-compliance-${{ matrix.python }}
87+
6188
cover:
6289
runs-on: ubuntu-latest
6390
needs:
6491
- unit
6592
- unit-prerelease
93+
- compliance
6694
steps:
6795
- name: Checkout
6896
uses: actions/checkout@v4

0 commit comments

Comments
 (0)