Skip to content

Commit fc1bbab

Browse files
committed
🔧 Template: Add tests job to CI workflow
We choose to only test against the min and max Python versions supported, and run the provided Hatch script for running the tests. Note that we pin `click==8.2.1` because `8.3.0` breaks Hatch, and `8.2.2` has been yanked.
1 parent 4ba761b commit fc1bbab

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎template/.github/workflows/.ci.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,17 @@ jobs:
1818

1919
- name: Run pre-commit
2020
run: hatch run precommit:run
21+
22+
tests:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
python-version: ['3.9', '3.13']
27+
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: actions/setup-python@v5
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
- run: pip install click==8.2.1 hatch
34+
- run: hatch run test:run

0 commit comments

Comments
 (0)