diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index c3a1578..3d95fba 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -16,49 +16,51 @@ jobs: python-version: [ '3.12' ] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 with: # Ensure a dynamic version is assigned fetch-tags: true fetch-depth: 20 - name: Cache air - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/audb/air/1.4.2 key: air-1.4.2 - name: Cache cough-speech-sneeze - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/audb/cough-speech-sneeze/2.0.1 key: cough-speech-sneeze-2.0.1 - name: Cache emodb - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/audb/emodb/1.4.1 key: emodb-1.4.1 - name: Cache micirp - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/audb/micirp/1.0.0 key: micirp-1.0.0 - name: Cache musan - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/audb/musan/1.0.0 key: musan-1.0.0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v9.0.0 + with: + cache-suffix: ${{ github.workflow }} - name: Ubuntu - install libsndfile run: | diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 3185a88..dffe937 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -12,15 +12,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python 3.12 - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: '3.12' - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v9.0.0 + with: + cache-suffix: ${{ github.workflow }} - name: Install pre-commit hooks run: uvx pre-commit install --install-hooks diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 32d7c68..890b34a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,47 +16,49 @@ jobs: group: ${{ github.workflow }}-${{ github.ref }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 with: fetch-depth: 2 - name: Cache air - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/audb/air/1.4.2 key: air-1.4.2 - name: Cache cough-speech-sneeze - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/audb/cough-speech-sneeze/2.0.1 key: cough-speech-sneeze-2.0.1 - name: Cache emodb - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/audb/emodb/1.4.1 key: emodb-1.4.1 - name: Cache micirp - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/audb/micirp/1.0.0 key: micirp-1.0.0 - name: Cache musan - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/audb/musan/1.0.0 key: musan-1.0.0 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: '3.12' - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v9.0.0 + with: + cache-suffix: ${{ github.workflow }} # PyPI package - name: Build Python package diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1e41b02..7c6a471 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,16 +35,16 @@ jobs: tasks: tests steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Cache emodb - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/audb/emodb/1.4.1 key: emodb-1.4.1 - name: Set up Python ${{ matrix.python-version }} with Micromamba - uses: mamba-org/setup-micromamba@v2 + uses: mamba-org/setup-micromamba@v3 with: cache-environment: true environment-name: .venv @@ -85,8 +85,8 @@ jobs: run: uv run --active 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-24.04'