-
-
Notifications
You must be signed in to change notification settings - Fork 254
66 lines (62 loc) · 1.92 KB
/
pytest.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Pytest
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
pytest:
runs-on: macos-latest # on ubunut the Qt libs are missing: ImportError: libEGL.so.1: cannot open shared object file: No such file or directory
name: runner / pytest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
# - name: Install Linux Qt system dependencies
# if: runner.os == 'Linux'
# run: |
# # APT update
# sudo apt update
#
# # Install Pyside6 system dependencies
# # https://doc.qt.io/qt-6/linux-requirements.html
# sudo apt install -y \
# libfontconfig1-dev \
# libfreetype6-dev \
# libx11-dev \
# libx11-xcb-dev \
# libxext-dev \
# libxfixes-dev \
# libxi-dev \
# libxrender-dev \
# libxkbcommon-dev \
# libxkbcommon-x11-dev \
# libatspi2.0-dev \
# '^libxcb.*-dev'
# actions/setup-python@v4 commes with an automatic pip cache
# - name: Get pip cache dir
# id: pip-cache
# run: |
# echo "::set-output name=dir::$(pip cache dir)"
# - uses: actions/cache@v3
# id: cache
# with:
## path: ~/.cache/pip # ubuntu
## path: ~/Library/Caches/pip # macos
# path: ${{ steps.pip-cache.outputs.dir }} # generic
# key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.*') }}
# restore-keys: |
# ${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r src/requirements-dev.txt
pip install -r src/requirements.txt
- name: Test with pytest
run: |
pytest