-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (31 loc) · 887 Bytes
/
ci.yml
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
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
pull_request_target:
workflow_dispatch:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Update environment
run: uv sync --all-extras --dev
- name: Run linter
run: uv run ruff check
- name: Check formatting
run: uv run ruff format --check
- name: Run tests
run: uv run pytest --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
- uses: codecov/test-results-action@v1
if: ${{ !cancelled() }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}