-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (37 loc) · 1017 Bytes
/
test.yml
File metadata and controls
48 lines (37 loc) · 1017 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
40
41
42
43
44
45
46
47
48
name: Test
on:
push:
branches:
- main
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
name: Python ${{ matrix.python-version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install dependencies
run: uv sync
- name: Ensure latest setuptools & pre-commit is installed
run: pip install --upgrade setuptools pre-commit
- name: Lint project
run: |
pre-commit run --all-files --color always
uv run safety check --continue-on-error --full-report
- name: Test package
run: |
uv run coverage run
uv run coverage report
uv run coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
files: reports/coverage.xml