-
-
Notifications
You must be signed in to change notification settings - Fork 58
48 lines (37 loc) · 874 Bytes
/
test.yaml
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
name: Lint
on:
push:
branches-ignore:
- master
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install black==23.7.0
- run: python -m black --check .
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install PySide6 requirements
run: |
sudo apt update
sudo apt install libopengl0 freeglut3 freeglut3-dev -y
- name: Install requirements
run: |
python -m pip install --upgrade pip setuptools
pip install .
pip install .[develop]
- name: Run tests
env:
PYTEST_QT_API: pyside6
run: pytest tests