From 7a382b13c922f7c28ded3c1bdbe27d1328bee773 Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Mon, 23 Dec 2024 16:49:46 -0500 Subject: [PATCH 1/3] Xfail TestISTAT.test_gh_104 --- sdmx/tests/test_sources.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sdmx/tests/test_sources.py b/sdmx/tests/test_sources.py index 32684916..4cc73652 100644 --- a/sdmx/tests/test_sources.py +++ b/sdmx/tests/test_sources.py @@ -472,6 +472,13 @@ def test_gh_75(self, client): log.info(f"Known, sporadic {e!r}") pass + @pytest.mark.xfail( + raises=HTTPError, + reason="""As of 2024-12-23, returns a 404 but also a text/plain message: «Error + while retrieving Mappings from "Mapping Store"! Cause:Dataflow + 'urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow=IT1:22_289(1.0)' doesn't + contain a mapping set»""", + ) @pytest.mark.network def test_gh_104(self, client): """Test of https://github.com/khaeru/sdmx/issues/104. From 5b5e3e538c530cbaf9ddce9f3941dbc5bfb4aa82 Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Mon, 23 Dec 2024 17:06:19 -0500 Subject: [PATCH 2/3] Ensure Python 3.13 in "sources" CI workflow --- .github/workflows/sources.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sources.yaml b/.github/workflows/sources.yaml index 94994999..befdaecb 100644 --- a/.github/workflows/sources.yaml +++ b/.github/workflows/sources.yaml @@ -14,6 +14,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true +env: + python-version: 3.13 + jobs: source: runs-on: ubuntu-latest @@ -70,7 +73,7 @@ jobs: - name: Install Python, the package, and dependencies run: | - uv venv --python=${{ matrix.python-version }} + uv venv --python=${{ env.python-version }} uv pip install .[tests] pytest-regex - name: Tests of ${{ matrix.source }} data source @@ -110,7 +113,7 @@ jobs: - name: Install Python, the package, and dependencies run: | - uv venv --python=${{ matrix.python-version }} + uv venv --python=${{ env.python-version }} uv pip install .[tests] pytest-regex - name: Download artifacts From d90c51034789fda65ffc05cdd81ffdddb3ad42b2 Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Mon, 23 Dec 2024 16:55:00 -0500 Subject: [PATCH 3/3] Use 'uv run' in "collect" CI job - Use 'uv run --no-sync' to avoid changing installed packages. --- .github/workflows/sources.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sources.yaml b/.github/workflows/sources.yaml index befdaecb..7e6712d7 100644 --- a/.github/workflows/sources.yaml +++ b/.github/workflows/sources.yaml @@ -81,7 +81,7 @@ jobs: env: SDMX_TEST_DATA: ./sdmx-test-data/ run: | - uv run \ + uv run --no-sync \ pytest -m network --regex '.*Test${{ matrix.source }}:' \ --color=yes --durations=30 -rA --verbose \ --cov-report=xml \ @@ -124,7 +124,9 @@ jobs: merge-multiple: true - name: Compile report - run: python -m sdmx.testing.report + run: | + uv run --no-sync \ + python -m sdmx.testing.report - name: Upload report as a pages artifact uses: actions/upload-pages-artifact@v3