Skip to content

Commit 8cb6a4e

Browse files
committed
Run test suite etspy
1 parent a966836 commit 8cb6a4e

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ env:
2222
# pytest-qt doesn't seem to be playing well when pyqt5 and pyside6
2323
# are installed in the same environment
2424
PYTEST_QT_API: pyqt5
25-
# workaround for https://github.com/pyxem/pyxem/pull/1175
26-
TEST_DEPS: '"pytest<9" pytest-qt pytest-xdist pytest-rerunfailures pytest-mpl filelock'
25+
# pytest<9 is workaround for https://github.com/pyxem/pyxem/pull/1175
26+
# tomli is needed for etspy test_version
27+
# https://github.com/usnistgov/etspy/issues/24
28+
TEST_DEPS: '"pytest<9" pytest-qt pytest-xdist pytest-rerunfailures pytest-mpl filelock tomli'
2729
CONSTRUCTOR_VERSION: '3.14.0'
2830
CONDA_STANDALONE: '24.11.0'
2931
ROSETTASCIIO_CACHE_NUMBER: 0 # Increase this value to reset cache
@@ -381,6 +383,13 @@ jobs:
381383
# https://github.com/pyxem/kikuchipy/pull/749
382384
pytest --pyargs kikuchipy -k "not test_not_allow_download_raises and not spherical"
383385
386+
- name: Run test etspy
387+
if: always()
388+
run: |
389+
conda activate "${{ env.install_dir }}"
390+
# https://github.com/usnistgov/etspy/issues/24
391+
pytest --pyargs etspy -k "not test_version"
392+
384393
- name: Upload Release Asset
385394
if: startsWith(github.ref, 'refs/tags/')
386395
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b
@@ -584,6 +593,13 @@ jobs:
584593
# https://github.com/pyxem/kikuchipy/pull/749
585594
pytest --pyargs kikuchipy -k "not test_not_allow_download_raises and not spherical"
586595
596+
- name: Run test etspy
597+
if: always()
598+
run: |
599+
call "${{ env.WP_DIR_NAME }}\scripts\env.bat"
600+
# https://github.com/usnistgov/etspy/issues/24
601+
pytest --pyargs etspy -k "not test_version"
602+
587603
- name: Upload Release Asset
588604
if: startsWith(github.ref, 'refs/tags/')
589605
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b

0 commit comments

Comments
 (0)