Skip to content

Merge pull request #777 from VariantEffect/release-2026.2.5 #1609

Merge pull request #777 from VariantEffect/release-2026.2.5

Merge pull request #777 from VariantEffect/release-2026.2.5 #1609

name: Run Tests
on:
push:
branches:
- main
- 'release-*'
pull_request:
env:
LOG_CONFIG: test
jobs:
run-mypy-3_11:
runs-on: ubuntu-latest
name: MyPy checks on Python 3.11
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- run: sudo apt-get update
- run: sudo apt-get install -y tabix
- run: pip install --upgrade pip
- run: pip install poetry
- run: poetry install --with dev --extras server
- run: poetry run mypy src/
run-ruff-lint:
runs-on: ubuntu-latest
name: Ruff linting on Python 3.11
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- run: sudo apt-get update
- run: sudo apt-get install -y tabix
- run: pip install --upgrade pip
- run: pip install poetry
- run: poetry install --with dev --extras server
- run: poetry run ruff check
run-tests-3_11-core-dependencies:
runs-on: ubuntu-latest
name: Pytest on Core Dependencies-- Python 3.11
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- run: pip install --upgrade pip
- run: pip install poetry
- run: poetry install --with dev
- name: Run fast tests on PRs
if: github.event_name == 'pull_request'
run: poetry run pytest tests/ -m "not network and not slow"
- name: Run full tests on main and release branches
if: github.event_name == 'push'
run: poetry run pytest tests/
run-tests-3_12-core-dependencies:
runs-on: ubuntu-latest
name: Pytest on Core Dependencies-- Python 3.12
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
- run: pip install --upgrade pip
- run: pip install poetry
- run: poetry install --with dev
- name: Run fast tests on PRs
if: github.event_name == 'pull_request'
run: poetry run pytest tests/ -m "not network and not slow"
- name: Run all tests on main and release branches
if: github.event_name == 'push'
run: poetry run pytest tests/
run-tests-3_11:
runs-on: ubuntu-latest
name: Pytest on Optional Dependencies-- Python 3.11
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- run: sudo apt-get update
- run: sudo apt-get install -y tabix
- run: pip install --upgrade pip
- run: pip install poetry
- run: poetry install --with dev --extras server
- name: Run fast tests with coverage on PRs
if: github.event_name == 'pull_request'
run: |
mkdir -p coverage
poetry run pytest tests/ -m "not network and not slow" --show-capture=stdout --cov=src --cov-report=term-missing --cov-report=lcov:coverage/lcov.info
- name: Run all tests with coverage on main and release branches
if: github.event_name == 'push'
run: |
mkdir -p coverage
poetry run pytest tests/ --show-capture=stdout --cov=src --cov-report=term-missing --cov-report=lcov:coverage/lcov.info
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
path-to-lcov: coverage/lcov.info