diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index a645fce..27c7b99 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -14,21 +14,21 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install poetry using pipx - run: pipx install poetry && pipx ensurepath - - - uses: actions/setup-python@v5 + - name: Setup uv + id: setup-uv + uses: astral-sh/setup-uv@v2 with: - python-version: "3.11.10" - cache: "poetry" + enable-cache: true + cache-dependency-glob: "uv.lock" + + - name: Install Python 3.11.10 + run: uv python install 3.11.10 - name: Install dependencies - run: | - poetry config virtualenvs.in-project true - poetry install --no-interaction --no-root + run: uv sync -p 3.11.10 - name: Run Ruff linting - run: poetry run ruff check . --output-format=full + run: uv run python -m ruff check . --output-format=full - name: Run Ruff formatting check - run: poetry run ruff format --check . + run: uv run python -m ruff format --check .