Skip to content

Commit cbd2eb7

Browse files
committed
Run the test suite before release
1 parent 4a22038 commit cbd2eb7

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/release.yml

+33
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,41 @@ permissions:
1111
contents: read
1212

1313
jobs:
14+
test:
15+
name: Tests Python ${{ matrix.python-version }}
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
fail-fast: true
20+
matrix:
21+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13-dev"]
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 1
27+
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
allow-prereleases: true
33+
cache: pip
34+
cache-dependency-path: |
35+
**/setup.py
36+
**/requirements*.txt
37+
38+
- name: Install dependencies
39+
run: |
40+
pip install -r requirements.txt -r requirements-dev.txt
41+
42+
- name: Run Testsuite
43+
run: |
44+
pytest
45+
1446
build:
1547
runs-on: ubuntu-latest
48+
needs: test
1649
steps:
1750
- uses: actions/checkout@v4
1851
with:

0 commit comments

Comments
 (0)