From 845339f0ebaf4f70bd35a97ed08a3f518e34f817 Mon Sep 17 00:00:00 2001 From: Mauricio Villegas <5780272+mauvilsa@users.noreply.github.com> Date: Mon, 4 May 2026 06:54:35 +0200 Subject: [PATCH] Update pre-commit and actions versions --- .github/workflows/manual.yaml | 2 +- .github/workflows/tests.yaml | 19 ++++++++++--------- .pre-commit-config.yaml | 6 +++--- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/manual.yaml b/.github/workflows/manual.yaml index 26617399..b50ae4ed 100644 --- a/.github/workflows/manual.yaml +++ b/.github/workflows/manual.yaml @@ -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 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4552beea..dc6277f6 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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* @@ -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* @@ -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/* @@ -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 @@ -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 @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fee9d663..18764af1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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