Skip to content

Commit

Permalink
Use uv to manage environment in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hongquan committed Jan 4, 2025
1 parent 8076d8d commit ab366a0
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,18 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', 3.11, 3.12, 3.13]
env:
UV_PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
env:
PLATFORM: ${{ matrix.platform }}
strategy:
matrix:
python-version: ['3.10', 3.11, 3.12, 3.13]
with:
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --all-extras --dev
- name: Run tests
run: uv run pytest tests

0 comments on commit ab366a0

Please sign in to comment.