-
Notifications
You must be signed in to change notification settings - Fork 10
33 lines (31 loc) · 820 Bytes
/
Copy pathci.yml
File metadata and controls
33 lines (31 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.11", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: python -m pip install -e ".[dev]"
- name: Lint
run: |
python -m pip install ruff
ruff check .
- name: Test
run: python -m pytest -q --cov=sifty --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
flags: py${{ matrix.python-version }}
fail_ci_if_error: false