Skip to content

Commit

Permalink
install uv
Browse files Browse the repository at this point in the history
  • Loading branch information
timvancann committed Sep 18, 2024
1 parent b4f9439 commit e56b927
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,47 @@ jobs:
lock_file:
runs-on: ubuntu-latest
steps:
- name: "Install UV"
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uv lock —locked
linting:
runs-on: ubuntu-latest
needs: [lock_file]
steps:
- name: "Install UV"
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uvx run ruff check .
formatting:
runs-on: ubuntu-latest
needs: [lock_file]
steps:
- name: "Install UV"
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uvx run ruff format --check .
type_consistency:
runs-on: ubuntu-latest
needs: [lock_file]
steps:
- name: "Install UV"
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uv run pyright .
tests:
runs-on: ubuntu-latest
needs: [lock_file]
steps:
- name: "Install UV"
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uv run pytest -vv --durations=0 --cov
build:
runs-on: [ubuntu-latest]
needs: [linting, formatting, type_consistency, tests]
steps:
- name: "Install UV"
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uv run python -m build

0 comments on commit e56b927

Please sign in to comment.