Skip to content

Commit

Permalink
refactor: update GitHub actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sdoose committed Jul 14, 2023
1 parent c8d728b commit 0831d0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: CI
on:
push:
branches:
- all
- "**"
tags:
- "v*"
workflow_dispatch:
Expand Down Expand Up @@ -39,14 +39,15 @@ jobs:

# these libraries enable testing on Qt on linux
- uses: tlambert03/setup-qt-libs@v1
- uses: coactions/setup-xvfb@v1

- name: "Install napari-locan and dependencies"
run: |
python -m pip install .[test]
python -m pip install pip-tools
- name: "Run tests"
run: coverage run -m pytest --junitxml=./test-results-${{ env.PYTHON_VERSION }}.xml
uses: coactions/setup-xvfb@v1
with:
run: coverage run -m pytest --junitxml=./test-results-${{ env.PYTHON_VERSION }}.xml
- name: "Prepare coverage reports"
run: coverage xml
- name: "Check coverage"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test_matrix_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:

# these libraries enable testing on Qt on linux
- uses: tlambert03/setup-qt-libs@v1
- uses: coactions/setup-xvfb@v1

# strategy borrowed from vispy for installing opengl libs on windows
- name: Install Windows OpenGL
Expand All @@ -43,4 +42,6 @@ jobs:
python -m pip install --upgrade pip
python -m pip install .[test]
- name: "Run tests"
run: pytest
uses: coactions/setup-xvfb@v1
with:
run: pytest

0 comments on commit 0831d0b

Please sign in to comment.