From 403be0a80368fd1590c09e2f965f71be071e78ff Mon Sep 17 00:00:00 2001 From: Marvin Vogt Date: Thu, 12 Sep 2024 13:38:16 +0000 Subject: [PATCH] Use uv instead of pdm in verify workflow --- .github/workflows/verify.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index bba35c9..d8c02b7 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -13,32 +13,29 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: pdm-project/setup-pdm@v4 + - uses: astral-sh/setup-uv@v2 with: - python-version: ${{ env.PYTHON_VERSION }} - cache: true - - run: pip3 install nox - - run: nox -s lint + enable-cache: true + - run: uv python install ${{ env.PYTHON_VERSION }} + - run: uvx nox -s lint check-lockfile: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: pdm-project/setup-pdm@v4 + - uses: astral-sh/setup-uv@v2 with: - python-version: ${{ env.PYTHON_VERSION }} - cache: true - - run: pip3 install nox - - run: nox -s lockfile + enable-cache: true + - run: uv python install ${{ env.PYTHON_VERSION }} + - run: uvx nox -s lockfile type-check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: pdm-project/setup-pdm@v4 + - uses: astral-sh/setup-uv@v2 with: - python-version: ${{ env.PYTHON_VERSION }} - cache: true - - run: pip3 install nox - - run: nox -s mypy + enable-cache: true + - run: uv python install ${{ env.PYTHON_VERSION }} + - run: uvx nox -s mypy spellcheck: runs-on: ubuntu-latest steps: