Skip to content

Commit

Permalink
ci: test add separate validate cmd for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Dec 1, 2023
1 parent 212f2ed commit bd6f0bc
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,22 +116,33 @@ jobs:
run: |
${{ env.RUN_CMD }} run --dataset-dir dataset/sars-cov-2/${{ env.DATASET_TAG }} --output-dir output/example1 --populations "AY.4.2*,BA.5.2,XBC.1.6*,XBB.1.5.1,XBL"
${{ env.RUN_CMD }} plot --dataset-dir dataset/sars-cov-2/${{ env.DATASET_TAG }} --run-dir output/example1
if [[ $(grep "fail" output/example1/linelist.tsv) ]]; then exit 1; fi
- name: example 2
run: |
wget https://raw.githubusercontent.com/phac-nml/rebar/${{ github.sha }}/data/example2.fasta
${{ env.RUN_CMD }} run --dataset-dir dataset/sars-cov-2/${{ env.DATASET_TAG }} --output-dir output/example2 --alignment example2.fasta
${{ env.RUN_CMD }} plot --dataset-dir dataset/sars-cov-2/${{ env.DATASET_TAG }} --run-dir output/example2
if [[ $(grep "fail" output/validate/example2.tsv) ]]; then exit 1; fi
- name: toy1
run: |
${{ env.RUN_CMD }} dataset download --output-dir dataset/toy1 --name toy1 --tag custom
${{ env.RUN_CMD }} run --dataset-dir dataset/toy1 --output-dir output/toy1 --populations "*" --mask 0,0 --min-length 1
${{ env.RUN_CMD }} plot --dataset-dir dataset/toy1 --run-dir output/toy1
- name: validate (non-windows)
if: ${{ matrix.os != 'windows-latest' }}
run: |
if [[ $(grep "fail" output/example1/linelist.tsv) ]]; then exit 1; fi
if [[ $(grep "fail" output/validate/example2.tsv) ]]; then exit 1; fi
if [[ $(grep "fail" output/toy1/linelist.tsv) ]]; then exit 1; fi
- name: validate (windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
if(findstr fail output\example1\linelist.tsv){ exit 1}
if(findstr fail output\example2\linelist.tsv){ exit 1}
if(findstr fail output\toy1\linelist.tsv){ exit 1}
- name: upload output
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit bd6f0bc

Please sign in to comment.