From a035b110990e69a62d551dd2850c1b371417c9cf Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 3 Sep 2024 19:16:40 +0100 Subject: [PATCH] Use new uv APIs to simplify CI jobs (#245) --- .github/workflows/regen-examples-and-docs.yml | 2 +- .github/workflows/test-website.yml | 2 +- .github/workflows/typecheck.yml | 9 ++------- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/regen-examples-and-docs.yml b/.github/workflows/regen-examples-and-docs.yml index 2ae37418..554f83c0 100644 --- a/.github/workflows/regen-examples-and-docs.yml +++ b/.github/workflows/regen-examples-and-docs.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.11" - - uses: hynek/setup-cached-uv@v2 + - run: curl -LsSf https://astral.sh/uv/install.sh | sh - run: uv pip install -e .[docs] --system - run: uv pip freeze - name: Regenerate examples and docs diff --git a/.github/workflows/test-website.yml b/.github/workflows/test-website.yml index 5bee5061..ff67e2c7 100644 --- a/.github/workflows/test-website.yml +++ b/.github/workflows/test-website.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.11" - - uses: hynek/setup-cached-uv@v2 + - run: curl -LsSf https://astral.sh/uv/install.sh | sh - run: uv pip install -e .[docs] --system - run: uv pip freeze - name: Regenerate examples and docs diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index 3cce7fd0..bc50ba0e 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -35,13 +35,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.11" - - uses: hynek/setup-cached-uv@v2 - - run: uv pip install -e ".[typecheck]" --system - - run: uv pip freeze - - run: mypy + - run: curl -LsSf https://astral.sh/uv/install.sh | sh + - run: uv run --python=3.11 --extra=typecheck mypy pyright: name: Run pyright on the codebase