Skip to content

Release 4.0.1

Release 4.0.1 #405

name: Unit tests without external tools
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
tests:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
python-version: ['3.11', '3.12']
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
activate-environment: test
auto-activate-base: false
- name: Install epytope
shell: bash -el {0}
# --no-cache-dir avoids a corrupt runner pip cache making a present
# package look unavailable ("from versions: none"); retries/timeout
# harden against transient PyPI index hiccups.
run: |
pip install --no-cache-dir --retries 5 --timeout 60 "numpy<2"
pip install --no-cache-dir --retries 5 --timeout 60 ".[dev]"
- name: Install Test dependencies
shell: bash -el {0}
run: |
conda install -c conda-forge glpk
- name: Download PyEnsembl data
shell: bash -el {0}
run: |
pyensembl install --release 75 --species human
- name: Run Tests
shell: bash -el {0}
run: pytest epytope/test/ --ignore=epytope/test/external -v