Skip to content

Commit

Permalink
Update CI for uv
Browse files Browse the repository at this point in the history
  • Loading branch information
tnm committed Dec 17, 2024
1 parent 7bd5a58 commit 8dcbcd7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install dependencies
- name: Create venv and install dependencies
run: |
uv venv
. .venv/bin/activate
uv pip install -r requirements.txt
uv pip install pre-commit
- name: Copy pre-commit config
run: |
cp .ci-pre-commit-config.yaml .pre-commit-config.yaml
- name: Run pre-commit
run: |
uv pip install pre-commit
pre-commit run --all-files
. .venv/bin/activate
pre-commit run --all-files

0 comments on commit 8dcbcd7

Please sign in to comment.