diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index a1159460fc..fa9e2635d3 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -268,8 +268,16 @@ jobs: ASPIREDIR=${{ env.WORK_DIR }} python -c \ "import aspire; print(aspire.config['cache']['cache_dir']); import aspire.downloader; aspire.downloader.emdb_2660()" - name: Run + env: + PYTEST_CI_FILTERWARNINGS: |- + error + ignore::UserWarning:tests.* run: | - ASPIREDIR=${{ env.WORK_DIR }} PYTHONWARNINGS=error python -m pytest --durations=50 --cov=aspire --cov-report=xml + ASPIREDIR=${{ env.WORK_DIR }} python -m pytest \ + -o "filterwarnings=${PYTEST_CI_FILTERWARNINGS}" \ + --durations=50 \ + --cov=aspire \ + --cov-report=xml - name: Upload Coverage to CodeCov uses: codecov/codecov-action@v4 with: