Skip to content

Commit 9c38905

Browse files
Update ci
1 parent 3e4fd17 commit 9c38905

File tree

1 file changed

+32
-0
lines changed
  • .github/workflows

1 file changed

+32
-0
lines changed

.github/workflows/ci

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,33 @@
1+
name: ci
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.10", "3.11", "3.12"]
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- uses: actions/cache@v4
18+
with:
19+
path: ~/.cache/pip
20+
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
21+
restore-keys: |
22+
${{ runner.os }}-pip-
23+
- run: python -m pip install -U pip
24+
- run: pip install -e ".[dev]"
25+
- run: pytest -q --maxfail=1 --disable-warnings --cov=sudoku_dlx --cov-report=xml
26+
- name: Upload coverage to Codecov
27+
uses: codecov/codecov-action@v4
28+
with:
29+
token: ${{ secrets.CODECOV_TOKEN }} # Not required for public repos
30+
files: ./coverage.xml
31+
flags: unittests
32+
fail_ci_if_error: false
133

0 commit comments

Comments
 (0)