diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index 2b11178b..4f187057 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -9,6 +9,6 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 - uses: pre-commit/action@v3.0.1 diff --git a/.github/workflows/pypipublish.yaml b/.github/workflows/pypipublish.yaml index fba05314..49d97c37 100644 --- a/.github/workflows/pypipublish.yaml +++ b/.github/workflows/pypipublish.yaml @@ -38,7 +38,7 @@ jobs: git restore -SW . python -m build --sdist --wheel . - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: releases path: dist @@ -51,7 +51,7 @@ jobs: name: Install Python with: python-version: '3.10' - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: releases path: dist @@ -70,14 +70,15 @@ jobs: needs: test-built-dist if: github.event_name == 'release' runs-on: ubuntu-latest + permissions: + id-token: write + contents: read steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: releases path: dist - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@v1.8.10 with: - username: "__token__" - password: ${{ secrets.PYPI_API_TOKEN }} - verbose: true + repository-url: https://upload.pypi.org/legacy/ diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 22d4ce50..85c04019 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -28,6 +28,7 @@ jobs: environment-file: ci/environment.yml create-args: | python=${{ matrix.python-version }} + cache-key: micromamba-${{ matrix.python-version }}-${{ runner.os }} # Add a unique cache key - name: Conda info run: conda info