forked from dr-leo/pandaSDMX
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #215 from khaeru/fix/xml-v21-cat-target
Fix read of str:Categorisation > str:Target from SDMX-ML 2.1
- Loading branch information
Showing
7 changed files
with
109 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,23 +44,22 @@ jobs: | |
repository: khaeru/sdmx-test-data | ||
path: sdmx-test-data | ||
|
||
- uses: actions/setup-python@v5 | ||
- uses: astral-sh/setup-uv@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: pip | ||
cache-dependency-path: "**/pyproject.toml" | ||
enable-cache: true | ||
cache-dependency-glob: "**/pyproject.toml" | ||
|
||
- name: Upgrade pip | ||
run: python -m pip install --upgrade pip | ||
|
||
- name: Install the Python package and dependencies | ||
run: pip install .[tests] | ||
- name: Install Python, the package, and dependencies | ||
run: | | ||
uv venv --python=${{ matrix.python-version }} | ||
uv pip install .[tests] | ||
- name: Run pytest | ||
env: | ||
SDMX_TEST_DATA: ./sdmx-test-data/ | ||
run: | | ||
pytest \ | ||
uv run --no-sync \ | ||
pytest \ | ||
-ra --color=yes --verbose \ | ||
--cov-report=xml \ | ||
--numprocesses auto | ||
|
@@ -77,12 +76,16 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: { python-version: 3.x } | ||
|
||
- name: Force recreation of pre-commit virtual environment for mypy | ||
if: github.event_name == 'schedule' # Comment this line to run on a PR | ||
run: gh cache list -L 999 | cut -f2 | grep pre-commit | xargs -I{} gh cache delete "{}" || true | ||
env: { GH_TOKEN: "${{ github.token }}" } | ||
|
||
- uses: pre-commit/[email protected] | ||
- uses: astral-sh/setup-uv@v4 | ||
with: | ||
enable-cache: true | ||
cache-dependency-glob: "**/pyproject.toml" | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: ${{ github.job }}|${{ hashFiles('.pre-commit-config.yaml') }} | ||
lookup-only: ${{ github.event_name == 'schedule' }} | ||
# lookup-only: true | ||
- name: Run pre-commit | ||
# TEMPORARY Use Python 3.12 to avoid https://github.com/python/mypy/issues/18216 | ||
run: uvx --python=3.12 pre-commit run --all-files --show-diff-on-failure --color=always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.