Skip to content

Commit

Permalink
fix: Improve the speed of the action
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Sunglasses committed Nov 21, 2024
1 parent 43d9075 commit 37129d7
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,25 @@ on:
pull_request:
branches: [main]


env:
UV_SYSTEM_PYTHON: 1

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies with uv
run: |
uv venv --seed

uv python pin 3.10
- uses: actions/setup-python@v5
with:
python-version: "3.11"

uv run python -m pip install --upgrade pip
uv run pip install ruff isort black
- name: Install dependencies with uv
run: |
uv pip install ruff isort black
- name: Run linters
run: |
uv run ruff check .
Expand Down

0 comments on commit 37129d7

Please sign in to comment.