Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
3.12
- run: pip install -e ".[dev]"
- run: tox -- --cov=../jsonargparse --cov-append
- uses: actions/upload-artifact@v6
- uses: actions/upload-artifact@v7
with:
name: coverage
path: jsonargparse_tests/.coverage
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:
pytest --cov --cov-report=term --cov-report=xml --junit-xml=junit.xml
mv coverage.xml coverage_py${{ matrix.python }}_types.xml
mv junit.xml junit_py${{ matrix.python }}_types.xml
- uses: actions/upload-artifact@v6
- uses: actions/upload-artifact@v7
with:
name: coverage_py${{ matrix.python }}
path: ./coverage_py*
- uses: actions/upload-artifact@v6
- uses: actions/upload-artifact@v7
with:
name: junit_py${{ matrix.python }}
path: ./junit_py*
Expand Down Expand Up @@ -132,11 +132,11 @@ jobs:
pytest --cov --cov-report=term --cov-report=xml --junit-xml=junit.xml jsonargparse_tests/test_pydantic.py
mv coverage.xml coverage_pydantic2.xml
mv junit.xml junit_pydantic2.xml
- uses: actions/upload-artifact@v6
- uses: actions/upload-artifact@v7
with:
name: coverage_pydantic
path: ./coverage_py*
- uses: actions/upload-artifact@v6
- uses: actions/upload-artifact@v7
with:
name: junit_pydantic
path: ./junit_py*
Expand All @@ -155,7 +155,7 @@ jobs:
cd jsonargparse_tests
python -m build --wheel
mv dist/*.whl ../dist/
- uses: actions/upload-artifact@v6
- uses: actions/upload-artifact@v7
with:
name: package
path: ./dist/*
Expand Down Expand Up @@ -214,8 +214,9 @@ jobs:

codecov:
runs-on: ubuntu-latest
environment: codecov
needs: [linux, pydantic-v1]
permissions:
id-token: write
steps:
- uses: actions/checkout@v6
- uses: actions/download-artifact@v8
Expand All @@ -225,13 +226,13 @@ jobs:
with:
fail_ci_if_error: true
files: ./coverage_*.xml
token: ${{ secrets.CODECOV_TOKEN }}
use_oidc: true
- uses: codecov/codecov-action@v6
with:
fail_ci_if_error: true
report_type: test_results
files: ./junit_*.xml
token: ${{ secrets.CODECOV_TOKEN }}
use_oidc: true

sonarcloud:
runs-on: ubuntu-latest
Expand All @@ -256,7 +257,7 @@ jobs:
VERSION="$(git describe --tags --abbrev=0 | sed 's/^v//')+$(git rev-parse --short HEAD)"
fi
echo "VERSION=$VERSION" >> $GITHUB_ENV
- uses: SonarSource/sonarqube-scan-action@v7
- uses: SonarSource/sonarqube-scan-action@v8
with:
args: >
-Dsonar.organization=omni-us
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ repos:
exclude: .bumpversion.cfg

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.10
rev: v0.15.12
hooks:
- id: ruff-check
- id: ruff-format

- repo: https://github.com/crate-ci/typos
rev: v1.45.0
rev: v1.46.0
hooks:
- id: typos
args: []
verbose: true

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.20.0
rev: v1.20.2
hooks:
- id: mypy
files: jsonargparse.*/.*.py
Expand Down
Loading