-
-
Notifications
You must be signed in to change notification settings - Fork 51
49 lines (41 loc) · 1.31 KB
/
Copy pathci.yml
File metadata and controls
49 lines (41 loc) · 1.31 KB
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
45
46
47
48
49
name: CI
# Runs the unit-test suite on every branch push and on pull requests targeting
# main. Mirrors the test step in release.yml so a green CI here means the tag
# build's tests will pass too. Pushing the locale/contributor PRs (which come
# from forks) is covered by the pull_request trigger.
on:
push:
branches: ["**"]
pull_request:
branches: [main]
# Cancel an in-progress run for the same ref when new commits are pushed.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
pip install -r dev-requirements.txt
- name: Run unit tests
env:
# Run the PyQt6 GUI tests headless + deterministically (conftest.py also
# sets this via setdefault; this makes the CI environment explicit).
QT_QPA_PLATFORM: offscreen
QT_SCALE_FACTOR: "1"
run: |
.\.venv\Scripts\Activate.ps1
python -m pytest -v