-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.14 KB
/
test_py_matrix.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
# Test with all python versions on linux
name: test-py-matrix
on:
schedule:
- cron: "37 4 * * 2"
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
name: ubuntu-py${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# these libraries enable testing on Qt on linux
- uses: tlambert03/setup-qt-libs@v1
# strategy borrowed from vispy for installing opengl libs on windows
- name: Install Windows OpenGL
if: runner.os == 'Windows'
run: |
git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git
powershell gl-ci-helpers/appveyor/install_opengl.ps1
- name: "Install napari-locan and dependencies"
run: |
python -m pip install --upgrade pip
python -m pip install pyqt5 .[test]
- name: "Run tests"
uses: coactions/setup-xvfb@v1
with:
run: pytest