-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1022 Bytes
/
Copy pathci.yml
File metadata and controls
37 lines (34 loc) · 1022 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
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.11", "3.13"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install Qt runtime libraries
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libegl1 libgl1 libxkbcommon-x11-0 libxcb-cursor0
- name: Install dependencies
run: python -m pip install --disable-pip-version-check -r requirements-dev.txt
- name: Verify release metadata
run: python scripts/verify_release.py
- name: Ruff
run: python -m ruff check cameracopy2 tests scripts
- name: Test
env:
QT_QPA_PLATFORM: offscreen
run: python -W error -m pytest