forked from sciwork/argus
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (29 loc) · 838 Bytes
/
Copy pathci.yml
File metadata and controls
39 lines (29 loc) · 838 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
34
35
36
37
38
39
name: Lint and Test
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v10.0.0
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Lint
run: uv run --locked --group dev ruff check src tests
- name: Check formatting
run: uv run --locked --group dev ruff format --check src tests
- name: Run tests
run: uv run --locked --group dev pytest tests/ -W error --cov=argus --cov-report=term-missing --cov-report=xml
- name: Upload coverage report
uses: codecov/codecov-action@v7
with:
files: coverage.xml