@@ -25,7 +25,7 @@ concurrency:
25
25
26
26
jobs :
27
27
test :
28
- name : ${{ matrix.platform }}, py${{ matrix.python-version }}, napari ${{ matrix.napari }}
28
+ name : ${{ matrix.platform }}, py${{ matrix.python-version }}, napari ${{ matrix.napari }}, ${{ matrix.tool }}
29
29
runs-on : ${{ matrix.platform }}
30
30
strategy :
31
31
fail-fast : false
@@ -44,11 +44,19 @@ jobs:
44
44
steps :
45
45
- uses : actions/checkout@v4
46
46
47
- - name : Set up Python ${{ matrix.python-version }}
47
+ - name : Set up Python ${{ matrix.python-version }} - pip
48
+ if : matrix.tool == 'pip'
48
49
uses : actions/setup-python@v5
49
50
with :
50
51
python-version : ${{ matrix.python-version }}
51
52
53
+ - name : Set up Python ${{ matrix.python-version }} - conda
54
+ if : matrix.tool == 'conda'
55
+ uses : conda-incubator/setup-miniconda@v3
56
+ with :
57
+ miniforge-version : latest
58
+ python-version : ${{ matrix.python-version }}
59
+
52
60
- uses : tlambert03/setup-qt-libs@v1
53
61
54
62
# strategy borrowed from vispy for installing opengl libs on windows
@@ -59,21 +67,43 @@ jobs:
59
67
powershell gl-ci-helpers/appveyor/install_opengl.ps1
60
68
if (Test-Path -Path "C:\Windows\system32\opengl32.dll" -PathType Leaf) {Exit 0} else {Exit 1}
61
69
62
- - name : Install dependencies
70
+ - name : Install dependencies without tox-conda
71
+ if : matrix.tool == 'pip'
63
72
run : |
64
73
python -m pip install --upgrade pip
65
- pip install setuptools tox tox-gh-actions
74
+ python -m pip install setuptools tox tox-gh-actions
75
+
76
+ - name : Install dependencies including tox-conda
77
+ if : matrix.tool == 'conda'
78
+ shell : bash -el {0}
79
+ run : |
80
+ python -m pip install --upgrade pip
81
+ python -m pip install setuptools 'tox<4' tox-gh-actions tox-conda
82
+
83
+ - name : Test with tox - pip
84
+ if : matrix.tool == 'pip'
85
+ uses : aganders3/headless-gui@v2
86
+ with :
87
+ run : python -m tox -vv
88
+ env :
89
+ PYVISTA_OFF_SCREEN : True # required for opengl on windows
90
+ NAPARI : ${{ matrix.napari }}
91
+ FORCE_COLOR : 1
92
+ # PySide6 only functional with Python 3.10+
93
+ TOX_SKIP_ENV : " .*py39-PySide6.*"
66
94
67
- - name : Test with tox
95
+ - name : Test with tox - conda
96
+ if : matrix.tool == 'conda'
68
97
uses : aganders3/headless-gui@v2
69
98
with :
99
+ shell : bash -el {0}
70
100
run : python -m tox -vv
71
101
env :
72
102
PYVISTA_OFF_SCREEN : True # required for opengl on windows
73
103
NAPARI : ${{ matrix.napari }}
74
104
FORCE_COLOR : 1
75
105
# PySide6 only functional with Python 3.10+
76
- TOX_SKIP_ENV : " .*py39-PySide6.*|.*py311-PySide2.* "
106
+ TOX_SKIP_ENV : " .*py39-PySide6.*"
77
107
78
108
- name : Coverage
79
109
uses : codecov/codecov-action@v5
0 commit comments