Skip to content

Commit

Permalink
Use uv to simplify various CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Sep 3, 2024
1 parent 9d4b9b2 commit a58819f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/regen-examples-and-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: hynek/setup-cached-uv@v2
- run: uv pip install -e .[docs] --system
- run: uv pip freeze
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Regenerate examples and docs
id: regen
run: python scripts/regenerate.py --download-typeshed
run: uv run --extra=docs scripts/regenerate.py --download-typeshed
- name: Check the generated files with pre-commit
id: lint
uses: pre-commit/action@v3.0.1
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/test-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: hynek/setup-cached-uv@v2
- run: uv pip install -e .[docs] --system
- run: uv pip freeze
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Regenerate examples and docs
run: python scripts/regenerate.py --download-typeshed
run: uv run --extra=docs scripts/regenerate.py --download-typeshed
- name: Check the generated files with pre-commit
uses: pre-commit/action@v3.0.1
- name: Build docs
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 --extra=typecheck mypy

pyright:
name: Run pyright on the codebase
Expand Down

0 comments on commit a58819f

Please sign in to comment.