fix: create a venv with uv #30
Workflow file for this run
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: Python Package using Conda | |
on: [push] | |
jobs: | |
ci: | |
needs: [ostest, full-ci] | |
name: CI | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Done | |
run: exit 0 | |
full-ci: | |
runs-on: 'ubuntu-latest' | |
strategy: | |
max-parallel: 5 | |
matrix: | |
python-version: [ "3.9", "3.10", "3.11" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install uv | |
run: | | |
python -m pip install --upgrade pip | |
pip install uv | |
uv venv | |
- name: Install project | |
run: | | |
uv pip install . | |
- name: Test with pytest | |
run: | | |
uv run pytest -v | |
- name: Test table io from commandline | |
run: | | |
uv run geomux -i example/example.tsv.gz -o results_table.tab | |
- name: Test adat io from commandline | |
run: | | |
uv run geomux -i example/example.h5ad -o results_table.tab | |
ostest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 5 | |
matrix: | |
os: [ "windows-latest", "macos-latest" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install uv | |
run: | | |
python -m pip install --upgrade pip | |
pip install uv | |
uv venv | |
- name: Install project | |
run: | | |
uv pip install . | |
- name: Test with pytest | |
run: | | |
uv run pytest -v | |
- name: Test table io from commandline | |
run: | | |
uv run geomux -i example/example.tsv.gz -o results_table.tab | |
- name: Test adat io from commandline | |
run: | | |
uv run geomux -i example/example.h5ad -o results_table.tab |