Skip to content

Commit

Permalink
Make the git checks work with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
dansahagian committed Sep 14, 2024
1 parent f11d834 commit ba39198
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
push:
paths:
- "fbsurvivor/**"
- "requirements/**"
- "pyproject.toml"
- "uv.lock"

jobs:
check:
Expand Down Expand Up @@ -35,14 +36,23 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4

- name: Install uv
uses: astral-sh/setup-uv@v2
with:
version: "0.4.10"

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/dev.txt --no-deps
python-version-file: ".python-version"

- name: Install the project
run: uv sync --all-extras --dev

- name: Install ruff
run: uv tool install ruff

- name: Ruff Linting Check
run: ruff check .
- name: Ruff Imports Check
Expand Down

0 comments on commit ba39198

Please sign in to comment.