-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 979 Bytes
/
Copy pathpython-tests.yml
File metadata and controls
43 lines (35 loc) · 979 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
name: Test package
on:
push:
branches: [main]
pull_request:
branches:
- main
- dev
workflow_dispatch:
# A new push to a PR supersedes the run already in flight for that ref, so a
# wedged job cannot sit on a runner while its replacement queues behind it.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
runs-on: ${{matrix.os}}
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v6
- name: Install the project
run: uv sync --python ${{ matrix.python-version }}
- name: Lint
run: uv tool run ruff check --output-format=github src
- name: Run tests
run: uv run pytest tests