From 25a6d4ce7112b17c40cea8a4a99e6160100ebcfc Mon Sep 17 00:00:00 2001 From: Tim Dunn Date: Mon, 14 Oct 2024 15:41:07 -0400 Subject: [PATCH] ci: updated test.yml --- .github/workflows/test.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5e39101..23a4e70 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: test +name: Test on: push: @@ -7,13 +7,15 @@ on: branches: [ "master", "dev" ] jobs: - build: + Test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: install htslib + with: + ref: ${{ github.ref }} + - name: Install htslib run: | wget https://github.com/samtools/htslib/releases/download/1.17/htslib-1.17.tar.bz2 tar -xvf htslib-1.17.tar.bz2 @@ -23,7 +25,7 @@ jobs: make install echo LIBRARY_PATH=`pwd`:$LIBRARY_PATH >> $GITHUB_ENV echo LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH >> $GITHUB_ENV - - name: make vcfdist + - name: Make vcfdist run: | cp -r htslib-1.17/htslib src echo $LIBRARY_PATH @@ -31,8 +33,9 @@ jobs: cd src make ./vcfdist -v - - name: test vcfdist + - name: Test vcfdist run: | + sudo apt-get install -y libgtest-dev cd tests make ./test_vcfdist