From 5c23c2907c4e6483858ce5ab18e7f8dda4ced662 Mon Sep 17 00:00:00 2001 From: James Addison <55152140+jayaddison@users.noreply.github.com> Date: Fri, 25 Oct 2024 22:02:22 +0000 Subject: [PATCH] ci: suppress static-value warnings during GitHub Actions unit test workflow (#1335) --- .github/workflows/unittests.yaml | 2 ++ tox.ini | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/unittests.yaml b/.github/workflows/unittests.yaml index 958549aef..8c5ef86a7 100644 --- a/.github/workflows/unittests.yaml +++ b/.github/workflows/unittests.yaml @@ -28,4 +28,6 @@ jobs: - name: Install dependencies run: python -m pip install .[dev] - name: Run Tests + env: + PYTHONWARNINGS: "always:::recipe_scrapers,ignore:::recipe_scrapers.plugins.static_values" run: python -m unittest diff --git a/tox.ini b/tox.ini index 9f8d381a4..e2b972e58 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,7 @@ isolated_build = true [testenv] extras = dev +passenv = PYTHONWARNINGS commands = coverage run -m unittest {posargs} # The system-provided libxml2 on MacOS is typically outdated and this can lead to lxml parsing issues