Skip to content

Commit

Permalink
uv pip pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhsmit committed Nov 25, 2024
1 parent c28c427 commit 67f6c28
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
- name: Check out repository
uses: actions/checkout@v3

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
# Install a specific version of uv.
version: "0.5.4"

- name: Download test file windows
if: runner.os == 'Windows'
run: |
Expand All @@ -28,18 +34,9 @@ jobs:
- name: Set up python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements/requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt

- name: Install pinned requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt --prefer-binary

- name: Install test requirements
run: pip install .[test]
- name: Install in editable mode with test requirements
run: uv pip install -e .[test]

- name: Run tests
run: |
Expand Down

0 comments on commit 67f6c28

Please sign in to comment.