Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test against GUI packages (release and dev) #47

Merged
merged 1 commit into from
Jul 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ jobs:
EXTENSION_VERSION: 'release'

env:
MPLBACKEND: agg
EXTENSION: kikuchipy lumispy pyxem
EXTENSION: hyperspy-gui-ipywidgets hyperspy-gui-traitsui kikuchipy lumispy pyxem
TEST_DEPS: pytest pytest-xdist pytest-rerunfailures pytest-mpl
defaults:
run:
Expand All @@ -94,9 +93,9 @@ jobs:
# auto-activate-base: true
activate-environment: "test"

- name: Install pip and Test dependencies
- name: Install pip pyqt and Test dependencies
run: |
mamba install pip ${{ env.TEST_DEPS }}
mamba install pip pyqt ${{ env.TEST_DEPS }}

- name: Conda info
run: |
Expand Down Expand Up @@ -167,6 +166,8 @@ jobs:
pip install https://github.com/lumispy/lumispy/archive/main.zip
pip install https://github.com/pyxem/kikuchipy/archive/develop.zip
pip install https://github.com/pyxem/pyxem/archive/main.zip
pip install https://github.com/hyperspy/hyperspy_gui_ipywidgets/archive/main.zip
pip install https://github.com/hyperspy/hyperspy_gui_traitsui/archive/main.zip

- name: Clear conda and pip cache
run: |
Expand All @@ -189,6 +190,17 @@ jobs:
# Test fixed in dev branch but not release yet
python -m pytest --pyargs rsciio -k "not (TestSpec and test_metadata)"

- name: Run hyperspy_gui_ipywidgets Test Suite
if: ${{ always() }}
run: |
python -m pytest --pyargs hyperspy_gui_ipywidgets -k "not test_spikes_removal_tool and not test_eels_table_tool"

- name: Run hyperspy_gui_traitsui Test Suite
if: ${{ always() }}
# run the tests headlessly
run: |
xvfb-run python -m pytest --pyargs hyperspy_gui_traitsui

# - name: Run kikuchipy Test Suite
# if: ${{ contains(matrix.HYPERSPY_VERSION, 'RnMajor') == false }}
# run: |
Expand Down
Loading