-
Notifications
You must be signed in to change notification settings - Fork 88
54 lines (47 loc) · 1.33 KB
/
checks.yml
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
50
51
52
53
54
name: Checks
on:
push:
pull_request:
branches: [ develop ]
jobs:
checks:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: pip
- name: Install Linux dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y \
libxkbcommon-x11-0 \
x11-utils \
libyaml-dev \
libegl1-mesa \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xinerama0 \
libopengl0 \
libxcb-cursor0 \
pulseaudio
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install pytest-xvfb
- name: Install Windows dependencies
if: startsWith(matrix.os, 'windows')
run: |
python -m pip install --upgrade pip
python -m pip install -r win_requirements.txt
- name: Test with pytest
run: |
python runtests.py -vv --full-trace