Merge pull request #4464 from broadinstitute/dev #9
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: VLM Unit Tests | |
# Run the test suite on pushes (incl. merges) to master and dev | |
# Run the test suite when a PR is opened, pushed to, or reopened | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
paths: | |
- 'vlm/**' | |
- '.github/workflows/*vlm*.yaml' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths: | |
- 'vlm/**' | |
- '.github/workflows/*vlm*.yaml' | |
jobs: | |
vlm: | |
runs-on: ubuntu-latest | |
container: hailgenetics/hail:0.2.128 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip wheel | |
pip install -r hail_search/requirements-test.txt | |
- name: Run coverage tests | |
run: | | |
coverage run --source="./vlm" --omit="./vlm/__main__.py" -m pytest vlm/ | |
coverage report --fail-under=90 |