Skip to content

Commit

Permalink
use uv to set up test environment (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaranville authored Feb 21, 2025
1 parent beb331e commit bc43e63
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,39 @@ jobs:
config:
- { os: ubuntu-latest, py: 3.9 }
- { os: ubuntu-latest, py: "3.10" }
- { os: ubuntu-latest, py: "3.11", doc: 1, whl: 1 }
- { os: ubuntu-latest, py: "3.12" }
- { os: ubuntu-latest, py: "3.11" }
- { os: ubuntu-latest, py: "3.12", doc: 1 , whl: 1 }
- { os: windows-latest, py: "3.12", whl: 1 }
- { os: macos-latest, py: "3.12" }

# pure python wheels

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Set up Python ${{ matrix.config.py }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.config.py }}

- name: Install Python dependencies
- name: Install the project
run: |
python -m pip install --upgrade pip
python -m pip install .[dev,webview] build setuptools wheel
python -m build
uv sync --extra dev --extra webview --dev
uv build
- name: Run tests
run: |
pytest -v
python check_examples.py --chisq
uv run python -m pytest -v
uv run python check_examples.py --chisq
shell: bash
env:
MPLBACKEND: agg

- name: Check that the docs build (linux only)
if: matrix.config.doc == 1
run: |
make -j 4 -C doc SPHINXOPTS="-W --keep-going" html
source .venv/bin/activate
make -j 4 -C doc SPHINXOPTS="-W --keep-going" html

0 comments on commit bc43e63

Please sign in to comment.