From 7f46cf37e1360501da91c995c220d32f3aead3e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Arnoux?= Date: Mon, 19 Aug 2024 15:52:24 +0200 Subject: [PATCH] fix use of shasum --- .github/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 24a294b7..66d3dbc9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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.