Skip to content

Commit

Permalink
Merge pull request #216 from khaeru/fix/ci
Browse files Browse the repository at this point in the history
Address CI failures
  • Loading branch information
khaeru authored Dec 28, 2024
2 parents 2accc1c + d90c510 commit 9698161
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/sources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -70,15 +73,15 @@ 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
continue-on-error: true
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 \
Expand Down Expand Up @@ -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
Expand All @@ -121,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
Expand Down
7 changes: 7 additions & 0 deletions sdmx/tests/test_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9698161

Please sign in to comment.