Skip to content

Commit 4d090f3

Browse files
committed
ci: add test workflow
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent 17c0664 commit 4d090f3

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/test.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
env:
10+
FORCE_COLOR: 1
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
pytest:
18+
runs-on: ${{ matrix.os }}-latest
19+
strategy:
20+
matrix:
21+
os:
22+
- ubuntu
23+
- windows
24+
- macos
25+
python:
26+
- '3.9'
27+
- '3.10'
28+
- '3.11'
29+
- '3.12'
30+
- '3.13'
31+
fail-fast: false
32+
steps:
33+
- uses: actions/checkout@v4
34+
with:
35+
submodules: true
36+
- uses: actions/setup-python@v5
37+
with:
38+
python-version: ${{ matrix.python }}
39+
- run: python -m pip install .[test]
40+
- run: python -m pytest --showlocals -vv --cov --cov-report=xml
41+
- uses: codecov/codecov-action@v4
42+
if: always()
43+
env:
44+
PYTHON: ${{ matrix.python }}
45+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
46+
with:
47+
flags: tests
48+
env_vars: PYTHON
49+
name: ${{ matrix.os }} - ${{ matrix.python }}

0 commit comments

Comments
 (0)