We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f8f0ef commit 70ccd0bCopy full SHA for 70ccd0b
1 file changed
.github/workflows/test.yml
@@ -0,0 +1,31 @@
1
+name: test
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
8
9
+jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ python: ["3.10", "3.11", "3.12"]
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: ${{ matrix.python }}
21
+ - name: Install
22
+ run: |
23
+ python -m pip install --upgrade pip
24
+ if [ -f pyproject.toml ]; then
25
+ pip install -e ".[dev]" || pip install -e .
26
+ fi
27
+ pip install pytest pytest-cov ruff
28
+ - name: Lint (ruff)
29
+ run: ruff check . || true
30
+ - name: Test
31
+ run: pytest -q || pytest -q tests/
0 commit comments