Skip to content

Commit

Permalink
tests: add test for magic-class (#447)
Browse files Browse the repository at this point in the history
* add test for magic-class

* add pyqt5

* add deps

* test 3.1o

* change test name
  • Loading branch information
tlambert03 committed Aug 24, 2022
1 parent e803f97 commit dd24971
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 additions & 7 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,19 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9"]
platform: [ubuntu-latest, macos-latest, windows-2022]
python-version: ["3.8", "3.9", "3.10"]
platform: [ubuntu-latest, macos-latest, windows-latest]
backend: [pyqt5, pyside2]
include:
# until pyside2 is available for 3.10
- python-version: "3.10"
- python-version: "3.7"
platform: ubuntu-latest
backend: pyqt5
- python-version: "3.10"
- python-version: "3.7"
platform: macos-latest
backend: pyqt5
- python-version: "3.10"
- python-version: "3.7"
platform: windows-2022
backend: pyqt5
backend: pyside2
- python-version: "3.10"
platform: ubuntu-latest
backend: pyqt6
Expand Down Expand Up @@ -91,6 +90,32 @@ jobs:
with:
run: pytest test_napari.py -v --color=yes

test_magicclass:
name: magic-class tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: hanjinliu/magic-class
path: magic-class
- uses: tlambert03/setup-qt-libs@v1
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install -e .[testing,pyqt5]
pip install numpy superqt vispy pyqtgraph
python -m pip install ./magic-class
- name: Test magicclass
uses: GabrielBB/xvfb-action@v1
# continue-on-error: true
with:
working-directory: magic-class
run: pytest -v --color=yes

deploy:
needs: test
Expand Down

0 comments on commit dd24971

Please sign in to comment.