Skip to content

Commit b972709

Browse files
authored
Merge branch 'main' into failfast
2 parents 492089b + 0d263f7 commit b972709

File tree

5 files changed

+17
-16
lines changed

5 files changed

+17
-16
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ jobs:
2727
with:
2828
python-version: ${{ matrix.python-version }}
2929

30-
# these libraries enable testing on Qt on linux
31-
- uses: tlambert03/setup-qt-libs@19e4ef2d781d81f5f067182e228b54ec90d23b76 # v1.8
30+
- name: Setup headless screenL
31+
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2
32+
with:
33+
qt: true
34+
wm: herbstluftwm
3235

3336
- name: Install dependencies
3437
run: |
3538
python -m pip install --upgrade pip
3639
python -m pip install -r requirements.txt
3740
3841
- name: Test
39-
uses: aganders3/headless-gui@f85dd6316993505dfc5f21839d520ae440c84816 # v2.2
40-
with:
41-
run: python -m pytest -s -v --color=yes
42+
run: python -m pytest -s -v --color=yes

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,10 @@ Tests are automatically setup to run on GitHub when you push changes to your rep
330330

331331
You may also run your tests locally with [pytest](https://docs.pytest.org/en/7.1.x/).
332332
You'll need to make sure that your package is installed in your environment,
333-
along with testing requirements (specified in the pyproject.toml `project.optional-dependencies` section):
333+
along with testing requirements (specified in the pyproject.toml `[dependency-groups]` section):
334334
335335
```bash
336-
pip install -e ".[testing]"
336+
pip install -e ". --dependency-groups=testing"
337337
pytest
338338
```
339339

template/.github/workflows/test_and_deploy.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
# these libraries enable testing on Qt on linux
4242
- uses: tlambert03/setup-qt-libs@v1
4343

44-
# strategy borrowed from vispy for installing opengl libs on windows
4544
- name: Install Windows OpenGL
46-
if: runner.os == 'Windows'
47-
run: |
48-
git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git
49-
powershell gl-ci-helpers/appveyor/install_opengl.ps1
45+
uses: pyvista/setup-headless-display-action@v4.v2
46+
with:
47+
qt: true
48+
wm: herbstluftwm
49+
5050

5151
# note: if you need dependencies from conda, considering using
5252
# setup-miniconda: https://github.com/conda-incubator/setup-miniconda
@@ -59,9 +59,7 @@ jobs:
5959
6060
# this runs the platform-specific tests declared in tox.ini
6161
- name: Test with tox
62-
uses: aganders3/headless-gui@v2
63-
with:
64-
run: python -m tox
62+
run: python -m tox
6563
env:
6664
PLATFORM: ${{ matrix.platform }}
6765

template/pyproject.toml.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ dependencies = [
5151
# Allow easily installation with the full, default napari installation
5252
# (including Qt backend) using {{plugin_name}}[all].
5353
all = ["napari[all]"]
54+
55+
[dependency-groups]
5456
testing = [
5557
"tox",
5658
"pytest", # https://docs.pytest.org/en/latest/contents.html

template/tox.ini.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ passenv =
2828
XAUTHORITY
2929
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
3030
PYVISTA_OFF_SCREEN
31-
extras =
31+
dependency_groups =
3232
testing
3333
commands = pytest -v --color=yes --cov={{module_name}} --cov-report=xml

0 commit comments

Comments
 (0)