From 10f6e58f831d1a9c1bc2c80214568fd65ab580fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Mon, 16 Sep 2024 10:17:37 -0700 Subject: [PATCH] Fix the CI (#132) --- .github/workflows/check.yml | 9 ++++++--- .github/workflows/release.yml | 13 ++++++++----- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d716413..5f87ce4 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -39,10 +39,13 @@ jobs: with: python-version: ${{ matrix.py }} allow-prereleases: true - - name: setup uv for tox - uses: yezz123/setup-uv@v4 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v2 + with: + enable-cache: true + github-token: ${{ secrets.GITHUB_TOKEN }} - name: install self with tox-uv - run: uv pip install tox-uv tox-gh@. --system + run: uv pip install tox-uv tox-gh@. --system --python ${{ matrix.py }} - name: Setup test suite run: tox run -vv --skip-missing-interpreters false --notest - name: Run test suite diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e50f84..f0a762a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,14 +16,17 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.12" - - name: setup uv for tox - uses: yezz123/setup-uv@v4 - - name: Install build - run: uv pip install build[uv] --system + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v2 + with: + enable-cache: true + github-token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Build package - run: pyproject-build --installer uv --sdist --wheel . --outdir dist + run: uv build --sdist --wheel . --out-dir dist - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@v1.10.1 + with: + attestations: true