From e29b45618710025ab7cdb1554c8e22acd1a9f79c Mon Sep 17 00:00:00 2001 From: cgeng Date: Wed, 5 Aug 2026 11:13:38 +0200 Subject: [PATCH] Fix CI caching; bump checkout/setup-python off Node.js 20 setup-uv's cache keys on uv.lock/requirements*.txt, neither of which exists here (no committed lockfile, by design), so caching never actually worked. Bumped astral-sh/setup-uv v4/v5 -> v9.0.0 (publish.yml had both, in its two jobs): v9.0.0's default glob adds pyproject.toml, which is committed and changes exactly when a dependency does -- so caching now works with no lockfile needed. Also bumped actions/checkout and actions/setup-python to v7 across all four workflows, and codecov/codecov-action to v7 in test.yml, clearing the "Node.js 20 is deprecated" warning entirely. codecov-action's v5 rewrite dropped the `file` input this workflow used; renamed to `files`, its replacement. Left `prune-cache` at its new default (off): opensmile-python's only runtime dependencies are audobject and audinterface, with no torch-scale binary wheels in the dependency tree, so per astral-sh/setup-uv#967 pruning wouldn't pay off here either. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/doc.yml | 6 +++--- .github/workflows/linter.yml | 6 +++--- .github/workflows/publish.yml | 12 ++++++------ .github/workflows/test.yml | 10 +++++----- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 7ce4e55..91990cc 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -16,15 +16,15 @@ jobs: python-version: [ '3.10' ] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Set up uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v9.0.0 - name: Install dependencies run: uv sync diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 1312182..b75476d 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -12,15 +12,15 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python 3.10 - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: '3.10' - name: Set up uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v9.0.0 - name: Install pre-commit hooks run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6e10d90..7a016b7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,18 +24,18 @@ jobs: - win_amd64 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 # Need more than a shallow clone to get version from tags with: fetch-depth: 2 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: '3.10' - name: Set up uv - uses: astral-sh/setup-uv@v4 + uses: astral-sh/setup-uv@v9.0.0 - name: Install build dependencies run: uv sync @@ -66,7 +66,7 @@ jobs: steps: - name: Clone repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 # Need depth to get diff for changelog with: fetch-depth: 1 @@ -79,12 +79,12 @@ jobs: merge-multiple: true - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: '3.10' - name: Set up uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v9.0.0 - name: Install dependencies run: uv sync diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f51ec86..2170f98 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,15 +16,15 @@ jobs: python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Set up uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v9.0.0 - name: Setup Ubuntu run: | @@ -39,8 +39,8 @@ jobs: run: uv run pytest - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v7 with: token: ${{ secrets.CODECOV_TOKEN }} - file: ./coverage.xml + files: ./coverage.xml if: matrix.os == 'ubuntu-latest'