Skip to content

Address review: extend None-return to UTR accessors #104

Address review: extend None-return to UTR accessors

Address review: extend None-return to UTR accessors #104

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
# TODO:
# - cache this directory $HOME/.cache/pyensembl/
# - get a badge for tests passing
# - download binary dependencies from conda
name: Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "pyproject.toml"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run default linting script
run: |
./lint.sh
- name: Install Ensembl data
run: |
echo "Before installing Ensembl releases" && df -h
pyensembl install --release 75 --species human --custom-mirror https://github.com/openvax/ensembl-data/releases/download/GRCh37.75/
pyensembl install --release 77 --species human --custom-mirror https://github.com/openvax/ensembl-data/releases/download/GRCh38.77/
pyensembl install --release 93 --species human --custom-mirror https://github.com/openvax/ensembl-data/releases/download/GRCh38.93/
pyensembl install --release 93 --species mouse --custom-mirror https://github.com/openvax/ensembl-data/releases/download/GRCm38.93/
- name: Run unit tests
run: |
./test.sh
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2.2.3
with:
parallel: true
flag-name: python-${{ matrix.python-version }}
coveralls-finish:
needs: build
if: always()
runs-on: ubuntu-latest
steps:
- name: Finalize Coveralls
uses: coverallsapp/github-action@v2.2.3
with:
parallel-finished: true