Skip to content

Commit

Permalink
fix: update to current methods in astral docs
Browse files Browse the repository at this point in the history
  • Loading branch information
m-clare committed Jan 22, 2025
1 parent 2288f6a commit fae31a1
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,19 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Set up Python
uses: actions/setup-python@v3
- uses: actions/checkout@v4

- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python

- name: Check out code
uses: actions/checkout@v3

- 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 the project
run: uv sync --all-extras --dev

- name: Install test dependencies
run: uv pip install pytest black
- name: Build the package
run: uv build

- name: Run tests
run: pytest . -vv
Expand Down

0 comments on commit fae31a1

Please sign in to comment.