From 5dffaef28ff1dd88b9ed0d64337edc612f1e8bc0 Mon Sep 17 00:00:00 2001 From: Eric Prestat Date: Sat, 3 Feb 2024 20:05:49 +0000 Subject: [PATCH] Pin pytest to 7.4.4 to get the pyxem test suite to work --- .github/workflows/release.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b5a408..2531ac2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,8 @@ permissions: env: MPLBACKEND: 'agg' - TEST_DEPS: pytest pytest-qt pytest-xdist pytest-rerunfailures pytest-mpl + # pin pytest to 7.4.4 to get the test suite of pyxem to work + TEST_DEPS: pytest==7.4.4 pytest-qt pytest-xdist pytest-rerunfailures pytest-mpl jobs: create_release_job: @@ -304,12 +305,12 @@ jobs: conda activate "${{ env.install_dir }}" pytest --pyargs lumispy - # - shell: bash -l {0} - # name: Run test pyxem - # if: matrix.ARCH == 'x86_64' && always() - # run: | - # conda activate "${{ env.install_dir }}" - # pytest --pyargs pyxem + - shell: bash -l {0} + name: Run test pyxem + if: matrix.ARCH == 'x86_64' && always() + run: | + conda activate "${{ env.install_dir }}" + pytest --pyargs pyxem # - shell: bash -l {0} # name: Run test kikuchipy @@ -484,12 +485,12 @@ jobs: # Skip these tests until there are fixed pytest --pyargs lumispy - # - name: Run test pyxem - # if: always() - # shell: cmd - # run: | - # call "${{ env.WP_DIR_NAME }}\scripts\env.bat" - # pytest --pyargs pyxem + - name: Run test pyxem + if: always() + shell: cmd + run: | + call "${{ env.WP_DIR_NAME }}\scripts\env.bat" + pytest --pyargs pyxem # - name: Run test kikuchipy # if: always()