-
Notifications
You must be signed in to change notification settings - Fork 31
39 lines (39 loc) · 1.01 KB
/
test.yml
File metadata and controls
39 lines (39 loc) · 1.01 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
name: Tests
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
tests:
name: ${{ matrix.deps }} / ${{ matrix.resolution }}
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- deps: core
resolution: locked
sync: uv sync --locked
pytest_args: tests -v
- deps: core
resolution: loose
sync: uv sync --upgrade
pytest_args: tests -v
- deps: full
resolution: locked
sync: uv sync --locked --all-extras
pytest_args: tests -v
- deps: full
resolution: loose
sync: uv sync --upgrade --all-extras
pytest_args: tests -v
steps:
- uses: actions/checkout@v6.0.2
- uses: astral-sh/setup-uv@v7.6.0
- name: Install dependencies
run: ${{ matrix.sync }}
- name: Run tests
run: uv run pytest ${{ matrix.pytest_args }}