Skip to content

Commit

Permalink
fix: adjust ci.yaml for uv
Browse files Browse the repository at this point in the history
  • Loading branch information
m-clare committed Jan 22, 2025
1 parent c104e14 commit 2288f6a
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,22 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry lock --no-update
poetry install
- name: Install uv (Unix)
if: runner.os != 'Windows'
run: curl -LsSf https://astral.sh/uv/install.sh | sh

- name: Install uv (Windows)
if: runner.os == 'Windows'
run: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/0.5.22/install.ps1 | iex"

- name: Build and install package
run: uv build --editable .

- name: Install test dependencies
run: uv pip install pytest black

- name: Run tests
run: |
poetry run pytest . -vv
run: pytest . -vv

- name: Lint with Black
run: |
poetry run black --check .
run: black --check .

0 comments on commit 2288f6a

Please sign in to comment.