Skip to content

Commit

Permalink
Add CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DonFreed committed Apr 9, 2024
1 parent b9bfb8a commit 10b8cb5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI
on:
push:
pull_request:

jobs:
ci:
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-22.04] #, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Test
run: |
PYTHONPATH=$(pwd) python example/filter_dp.py \
--input_vcf tests/hc_subset.vcf.gz \
--output_vcf tests/hc_subset_dp.vcf.gz
if [ ! -f tests/hc_subset_dp.vcf.gz ]; then exit 1; fi
if [ ! -f tests/hc_subset_dp.vcf.gz.tbi ]; then exit 1; fi
- name: Test csi
run: |
rm tests/hc_subset.vcf.gz.tbi
PYTHONPATH=$(pwd) VCF_INDEX_TYPE=2 python example/filter_dp.py \
--input_vcf tests/hc_subset.vcf.gz \
--output_vcf tests/hc_subset_dp.vcf.gz
if [ ! -f tests/hc_subset_dp.vcf.gz ]; then exit 1; fi
if [ ! -f tests/hc_subset_dp.vcf.gz.csi ]; then exit 1; fi
Binary file added tests/hc_subset.vcf.gz
Binary file not shown.
Binary file added tests/hc_subset.vcf.gz.csi
Binary file not shown.
Binary file added tests/hc_subset.vcf.gz.tbi
Binary file not shown.

0 comments on commit 10b8cb5

Please sign in to comment.