diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68128f45..79bd7b5c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,14 +10,8 @@ permissions: jobs: pypi: - name: Build & publish package to pypi - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: ['ubuntu-latest'] - python-version: ['3.11'] - if: startsWith(github.event.ref, 'refs/tags') + name: 'Build & publish package to PyPI' + runs-on: 'ubuntu-latest' steps: - uses: actions/checkout@v6 with: @@ -25,17 +19,12 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@v7 - with: - cache-dependency-glob: | - setup.py - cache-suffix: ${{ matrix.python-version }} - enable-cache: true - version: "latest" - name: Build package run: uv build - name: Publish package to PyPI + if: startsWith(github.event.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2741607b..de3b0edc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -56,8 +56,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@v7 with: - cache-dependency-glob: | - pyproject.toml + python-version: ${{ matrix.python-version }} cache-suffix: ${{ matrix.python-version }} enable-cache: true activate-environment: true