Skip to content

Commit

Permalink
use uv in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn committed Oct 17, 2024
1 parent cf14911 commit cf7c954
Show file tree
Hide file tree
Showing 3 changed files with 3,330 additions and 10 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,27 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.22"
enable-cache: true

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .["test"]
uv sync --all-extras
- name: run pre-commit
if: ${{ matrix.python-version == env.LATEST_PY_VERSION }}
run: |
python -m pip install pre-commit
pre-commit run --all-files
uv run pre-commit run --all-files
- name: Run tests
run: python -m pytest
run: uv run pytest

deploy:
needs: [tests]
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,3 @@ cdk.context.json

notebooks/

uv.lock
Loading

0 comments on commit cf7c954

Please sign in to comment.