Debian Codegraph @

.github/workflows/linux-tests.yml

raw symbols SCIP
1 name: Linux tests
2
3 on:
4 push:
5 branches:
6 - master
7 pull_request:
8 branches:
9 - master
10
11 jobs:
12 linux-qt5:
13 name: Linux Py${{ matrix.PYTHON_VERSION }} - ${{ matrix.QT_BINDING }} - ${{ matrix.QT_BINDING_VERSION }}
14 timeout-minutes: 15
15 runs-on: ubuntu-latest
16 env:
17 CI: True
18 QT_API: ${{ matrix.QT_BINDING }}
19 PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
20 RUNNER_OS: 'ubuntu'
21 strategy:
22 fail-fast: false
23 matrix:
24 PYTHON_VERSION: ['3.7', '3.10']
25 QT_BINDING: ['pyqt5', 'pyside2']
26 include:
27 - QT_BINDING_VERSION: 'latest'
28 steps:
29 - name: Checkout branch
30 uses: actions/checkout@v2
31 - name: Install System Packages
32 run: |
33 sudo apt-get update --fix-missing
34 sudo apt-get install -qq pyqt5-dev-tools libxcb-xinerama0 xterm --fix-missing
35 - name: Install Conda
36 uses: conda-incubator/setup-miniconda@v3
37 with:
38 activate-environment: test
39 auto-update-conda: false
40 auto-activate-base: false
41 python-version: ${{ matrix.PYTHON_VERSION }}
42 channels: conda-forge,defaults
43 channel-priority: strict
44 conda-remove-defaults: true
45 - name: Install dependencies
46 shell: bash -l {0}
47 run: conda env update --file requirements/environment_tests_${{ matrix.QT_BINDING }}_${{ matrix.QT_BINDING_VERSION }}.yml
48 - name: Install Package
49 shell: bash -l {0}
50 run: pip install -e .
51 - name: Show environment information
52 shell: bash -l {0}
53 run: |
54 conda info
55 conda list
56 - name: Run tests
57 shell: bash -l {0}
58 run: |
59 xvfb-run --auto-servernum python example.py
60 xvfb-run --auto-servernum pytest -x -vv --cov-report xml --cov=qtawesome qtawesome
61 - name: Upload coverage to Codecov
62 uses: codecov/codecov-action@v4
63 with:
64 fail_ci_if_error: true
65 verbose: true
66 env:
67 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
68
69 linux-qt6:
70 name: Linux Py${{ matrix.PYTHON_VERSION }} - ${{ matrix.QT_BINDING }} - ${{ matrix.QT_BINDING_VERSION }}
71 timeout-minutes: 15
72 runs-on: ubuntu-latest
73 env:
74 CI: True
75 QT_API: ${{ matrix.QT_BINDING }}
76 PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
77 RUNNER_OS: 'ubuntu'
78 strategy:
79 fail-fast: false
80 matrix:
81 PYTHON_VERSION: ['3.9', '3.13']
82 QT_BINDING: ['pyqt6', 'pyside6']
83 include:
84 - QT_BINDING_VERSION: 'latest'
85 - PYTHON_VERSION: '3.13' # PySide6 but specific version (6.8.3) on Python 3.13
86 QT_BINDING: 'pyside6'
87 QT_BINDING_VERSION: '6.8.3'
88 steps:
89 - name: Checkout branch
90 uses: actions/checkout@v2
91 - name: Install System Packages
92 run: |
93 sudo apt-get update --fix-missing
94 sudo apt-get install -qq pyqt6-dev-tools --fix-missing
95 - name: Setup a headless display
96 uses: pyvista/setup-headless-display-action@v3
97 with:
98 qt: true
99 - name: Install Conda
100 uses: conda-incubator/setup-miniconda@v3
101 with:
102 activate-environment: test
103 auto-update-conda: false
104 auto-activate-base: false
105 python-version: ${{ matrix.PYTHON_VERSION }}
106 channels: conda-forge,defaults
107 channel-priority: strict
108 conda-remove-defaults: true
109 - name: Install dependencies
110 shell: bash -l {0}
111 run: conda env update --file requirements/environment_tests_${{ matrix.QT_BINDING }}_${{ matrix.QT_BINDING_VERSION }}.yml
112 - name: Install Package
113 shell: bash -l {0}
114 run: pip install -e .
115 - name: Show environment information
116 shell: bash -l {0}
117 run: |
118 conda info
119 conda list
120 - name: Run tests
121 shell: bash -l {0}
122 run: |
123 xvfb-run --auto-servernum python example.py
124 xvfb-run --auto-servernum pytest -x -vv --cov-report xml --cov=qtawesome qtawesome
125 - name: Upload coverage to Codecov
126 uses: codecov/codecov-action@v4
127 with:
128 fail_ci_if_error: true
129 verbose: true
130 env:
131 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}