Skip to content

Commit db4d800

Browse files
committed
adding pytest run before building distribution and binaries on main branch
1 parent 0d772f9 commit db4d800

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build_wheels.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,34 @@ on:
1414
- published
1515

1616
jobs:
17+
run_pytest:
18+
name: Run tests on min and max Python versions
19+
runs-on: self-hosted
20+
strategy:
21+
fail-fast: true
22+
matrix:
23+
python-version: ["3.9", "3.13"]
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Set up Python
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
python -m pip install -e ".[dev]"
36+
37+
- name: Run tests with pytest
38+
run: |
39+
pytest -v
40+
1741
build_wheels:
1842
name: Build wheels on ${{ matrix.os }}
1943
runs-on: ${{ matrix.os }}
44+
needs: run_pytest
2045
strategy:
2146
fail-fast: false
2247
matrix:
@@ -37,6 +62,7 @@ jobs:
3762
build_sdist:
3863
name: Build source distribution
3964
runs-on: self-hosted
65+
needs: run_pytest
4066
steps:
4167
- uses: actions/checkout@v4
4268

0 commit comments

Comments
 (0)