Skip to content

Commit 34c3b05

Browse files
committed
test
1 parent 59721ce commit 34c3b05

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

.github/workflows/test_and_deploy.yml

+36-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ concurrency:
2525

2626
jobs:
2727
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 }}
2929
runs-on: ${{ matrix.platform }}
3030
strategy:
3131
fail-fast: false
@@ -44,11 +44,19 @@ jobs:
4444
steps:
4545
- uses: actions/checkout@v4
4646

47-
- name: Set up Python ${{ matrix.python-version }}
47+
- name: Set up Python ${{ matrix.python-version }} - pip
48+
if: matrix.tool == 'pip'
4849
uses: actions/setup-python@v5
4950
with:
5051
python-version: ${{ matrix.python-version }}
5152

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+
5260
- uses: tlambert03/setup-qt-libs@v1
5361

5462
# strategy borrowed from vispy for installing opengl libs on windows
@@ -59,21 +67,43 @@ jobs:
5967
powershell gl-ci-helpers/appveyor/install_opengl.ps1
6068
if (Test-Path -Path "C:\Windows\system32\opengl32.dll" -PathType Leaf) {Exit 0} else {Exit 1}
6169
62-
- name: Install dependencies
70+
- name: Install dependencies without tox-conda
71+
if: matrix.tool == 'pip'
6372
run: |
6473
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.*"
6694

67-
- name: Test with tox
95+
- name: Test with tox - conda
96+
if: matrix.tool == 'conda'
6897
uses: aganders3/headless-gui@v2
6998
with:
99+
shell: bash -el {0}
70100
run: python -m tox -vv
71101
env:
72102
PYVISTA_OFF_SCREEN: True # required for opengl on windows
73103
NAPARI: ${{ matrix.napari }}
74104
FORCE_COLOR: 1
75105
# PySide6 only functional with Python 3.10+
76-
TOX_SKIP_ENV: ".*py39-PySide6.*|.*py311-PySide2.*"
106+
TOX_SKIP_ENV: ".*py39-PySide6.*"
77107

78108
- name: Coverage
79109
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)