Try installing stuff to a virtualenv #65
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: build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-py: | |
name: test Python tools | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
# Set up and use uv. | |
- uses: actions/cache@v4 | |
id: cache-uv | |
with: | |
path: ~/.cache/uv | |
key: ${{ runner.os }}-python-${{ matrix.python-version }}-uv | |
- name: Create and activate virtualenv with uv | |
run: | | |
curl -LsSf https://astral.sh/uv/install.sh | sh | |
uv venv | |
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV | |
echo "$PWD/.venv/bin" >> $GITHUB_PATH | |
- name: Install Python tools | |
run: uv pip install -r requirements.txt | |
# Set up for tests. | |
- name: Install Turnt | |
run: uv pip install turnt | |
- name: Problem matcher | |
run: echo '::add-matcher::.github/tap-matcher.json' | |
- name: Fetch test data | |
run: make fetch SMALL=1 | |
- name: Pull odgi container | |
run: | | |
docker pull quay.io/biocontainers/odgi:0.8.3--py310h6cc9453_0 | |
docker tag quay.io/biocontainers/odgi:0.8.3--py310h6cc9453_0 odgi | |
- name: Install odgi alias | |
run: | | |
mkdir -p $HOME/.local/bin | |
cp .github/odgi.sh $HOME/.local/bin/odgi | |
chmod a+x $HOME/.local/bin/odgi | |
# Test slow_odgi. | |
- name: Set up for slow_odgi tests | |
run: make slow-odgi-setup SMALL=1 | |
- name: Test slow_odgi | |
run: make test-slow-odgi SMALL=1 | |
test-parser: | |
name: test DSL parser | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- run: cargo install runt | |
- run: cargo build | |
working-directory: ./pollen | |
- run: runt -v | |
working-directory: ./pollen |