Skip to content

Commit

Permalink
Use newer uv features to simplify some CI jobs (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored Sep 23, 2024
1 parent 33c8d9d commit 06a2682
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,23 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v1
with:
python-version: "3.12"
allow-prereleases: true
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uv pip install -e .[dev] --system
- run: mypy --python-version=${{ matrix.python-version }}
version: "latest"
- run: |
uv run --python=3.12 --extra=dev mypy --python-version=${{ matrix.python-version }}
flake8:
name: flake8
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v1
with:
python-version: "3.12"
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uv pip install -e .[dev] --system
version: "latest"
- run: |
flake8 $(git ls-files | grep 'py$') --color always
uv run --python=3.12 --extra=dev flake8 $(git ls-files | grep 'py$') --color=always
tests:
name: pytest suite
Expand All @@ -66,11 +62,8 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v1
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip
cache-dependency-path: pyproject.toml
- run: pip install -e .[dev]
- run: python3 -m pytest -vv
version: "latest"
- run: |
uv run --python=${{ matrix.python-version }} --extra=dev pytest -vv

0 comments on commit 06a2682

Please sign in to comment.