File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments