forked from kbytesys/pynagsystemd
-
Notifications
You must be signed in to change notification settings - Fork 16
40 lines (34 loc) · 957 Bytes
/
Copy pathtests.yml
File metadata and controls
40 lines (34 loc) · 957 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
---
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v6
# https://docs.astral.sh/uv/guides/integration/github/#multiple-python-versions
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v7
with:
version: "0.9.26"
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Run tests
run: uv run pytest tests -m "not (slow or gui)"