Skip to content

Commit

Permalink
fix use of shasum
Browse files Browse the repository at this point in the history
  • Loading branch information
jpjarnoux committed Aug 19, 2024
1 parent 3c2f9c8 commit 7f46cf3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ jobs:
mkdir info_to_test
ppanggolin all --cpu $NUM_CPUS --fasta genomes.fasta.list --output mybasicpangenome
ppanggolin info --pangenome mybasicpangenome/pangenome.h5 --content --parameters --status > info_to_test/mybasicpangenome_info.yaml
cat info_to_test/mybasicpangenome_info.yaml
shasum -a 256 mybasicpangenome/gene_families.tsv
shasum -a 256 -c <(echo "$(cat expected_info_files/clusters_mybasicpangenome.sha256) mybasicpangenome/gene_families.tsv") || { echo 'Checksum verification failed.' >&2; exit 1; }
cat info_to_test/mybasicpangenome_info.yaml
echo "$(cat expected_info_files/clusters_mybasicpangenome.sha256) mybasicpangenome/gene_families.tsv" | shasum -a 256 -c - || { echo 'Checksum verification failed.' >&2; exit 1; }
cd -
# test most options calls. If there is a change in the API somewhere that was not taken into account (whether in the options for the users, or the classes for the devs), this should fail, otherwise everything is probably good.
#--draw_hotspots option is problematic on macOS.
Expand Down

0 comments on commit 7f46cf3

Please sign in to comment.