-
Notifications
You must be signed in to change notification settings - Fork 16
38 lines (31 loc) · 743 Bytes
/
pytest.yml
File metadata and controls
38 lines (31 loc) · 743 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
name: Run Pytest
on:
workflow_dispatch:
push:
paths-ignore:
- ".github/**"
pull_request:
paths-ignore:
- ".github/**"
jobs:
build:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --all-extras --dev
- uses: pavelzw/pytest-action@v2
with:
custom-pytest: uv run pytest