Conda to uv #1340
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Python | |
on: [push, pull_request] | |
jobs: | |
test_python: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: ['3.10', '3.12'] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: astral-sh/setup-uv@v3 | |
with: | |
version: "latest" | |
env: | |
UV_PYTHON: ${{ matrix.version }} | |
- name: Install vitessce | |
run: uv sync --extra dev --extra all | |
- name: Run tests and report coverage with omits | |
run: | | |
uv run coverage run --rcfile .coveragerc_omit --module pytest && \ | |
uv run coverage report --show-missing --fail-under 100 | |
- name: Run tests and report coverage without omits | |
run: | | |
uv run coverage run --rcfile .coveragerc_real --module pytest && \ | |
uv run coverage report --show-missing |