-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (49 loc) · 1.33 KB
/
tests-python.yml
File metadata and controls
57 lines (49 loc) · 1.33 KB
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
49
50
51
52
53
54
55
56
57
name: Tests (uv)
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
# Cancel in-progress jobs when pushing to the same branch.
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- os: ubuntu-latest
python-version: "3.11"
- os: ubuntu-latest
python-version: "3.12"
- os: ubuntu-latest
python-version: "3.13"
- os: macos-latest
python-version: "3.13"
continue-on-error: true
- os: windows-latest
python-version: "3.13"
continue-on-error: true
name: Python ${{ matrix.python-version }} • ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install the project
shell: bash -el {0}
run: uv sync
- name: Run tests
shell: bash -el {0}
env:
SYNOPTIC_TOKEN: ${{ secrets.SYNOPTIC_TOKEN }}
TMPDIR: ${{ runner.temp }}
run: uv run pytest