-
Notifications
You must be signed in to change notification settings - Fork 121
38 lines (30 loc) · 774 Bytes
/
Copy pathtests.yml
File metadata and controls
38 lines (30 loc) · 774 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: Tests
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
pytest:
name: Pytest (Windows, Python 3.12, CPU)
runs-on: windows-latest
timeout-minutes: 30
env:
QT_QPA_PLATFORM: offscreen
PYTHONUTF8: "1"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
version: "0.11.33"
enable-cache: true
cache-dependency-glob: uv.lock
- name: Install Python
run: uv python install 3.12
- name: Sync CPU dependencies
run: uv sync --locked --no-default-groups --group cpu --group test
- name: Run all tests
run: uv run --no-sync pytest test