-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (31 loc) · 788 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (31 loc) · 788 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
name: CI
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
python-version: ["3.11", "3.12"]
env:
QT_QPA_PLATFORM: offscreen
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install project
run: python -m pip install -e ".[dev]"
- name: Lint
run: python -m ruff check .
- name: Test
run: python -m pytest -q
- name: Verify CLI metadata
run: python main.py --version