From 1af5ed423cfbdda40dedabf93fed772c729adee3 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 29 May 2024 11:55:48 -0500 Subject: [PATCH] ci: Don't test warnings on release tests (#2489) * Override error on filterwarnings to avoid failing on warnings. * Set the fail-fast to False in the CI strategy to allow for identifying if things are OS specific. --- .github/workflows/release_tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release_tests.yml b/.github/workflows/release_tests.yml index 46df16d3f3..12fbb2fa53 100644 --- a/.github/workflows/release_tests.yml +++ b/.github/workflows/release_tests.yml @@ -28,6 +28,7 @@ jobs: # Intel runner - os: macos-13 python-version: '3.12' + fail-fast: false steps: - uses: actions/checkout@v4 @@ -47,6 +48,10 @@ jobs: - name: Canary test public API run: | + # Override the ini option for filterwarnings with an empty list to disable error on filterwarnings + # as testing the latest release API still works, not the release is warning free. + # Though still show warnings by setting warning control to 'default'. + export PYTHONWARNINGS='default' pytest tests/test_public_api.py # FIXME: c.f. https://github.com/proycon/codemetapy/issues/24