-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 988 Bytes
/
test.yaml
File metadata and controls
44 lines (36 loc) · 988 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
name: "Run Tests"
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
permissions: {}
jobs:
test:
name: Python ${{ matrix.python-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- "ubuntu-latest"
python-version:
- "3.13"
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-cache: true
cache-dependency-glob: uv.lock
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Run tests
run: uv run --frozen pytest tests --cov