-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1012 Bytes
/
test.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
43
44
45
46
---
name: Test
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: >-
${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number
|| github.sha }}
cancel-in-progress: true
permissions:
contents: read
id-token: write
jobs:
pytest:
name: pytest (Python ${{ matrix.python_version }})
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.11", "3.12"]
fail-fast: false
env:
PYTHON: ${{ matrix.python_version }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v2
with:
enable-cache: true
- run: uv python install ${{ matrix.python_version }}
- uses: extractions/setup-just@v2
- run: just test
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
files: ./coverage.xml
env_vars: PYTHON
use_oidc: true
fail_ci_if_error: true