From a1919f5c2d13df18ffadee9dad236c4fb1dd162d Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Sat, 18 Nov 2023 17:04:27 +0000 Subject: [PATCH 1/3] ci: fix integration tests with new path --- .github/workflows/docker_integration_test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker_integration_test.yml b/.github/workflows/docker_integration_test.yml index 839f17bb..86961e56 100644 --- a/.github/workflows/docker_integration_test.yml +++ b/.github/workflows/docker_integration_test.yml @@ -30,5 +30,6 @@ jobs: - name: Run integration test shell: bash run: | - chmod +x ./tests/integration_test.sh - ./tests/integration_test.sh \ No newline at end of file + TEST_PATH=./personal_mnemonic_medium/tests/integration_test.sh + chmod +x $TEST_PATH + $TEST_PATH \ No newline at end of file From 1d5ad252f6071bf70d0c62fbb75e6ff4e80c5b45 Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Sat, 18 Nov 2023 17:07:06 +0000 Subject: [PATCH 2/3] fix: incorrect path to cli --- personal_mnemonic_medium/tests/integration_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/personal_mnemonic_medium/tests/integration_test.sh b/personal_mnemonic_medium/tests/integration_test.sh index 9c423948..b44aed92 100755 --- a/personal_mnemonic_medium/tests/integration_test.sh +++ b/personal_mnemonic_medium/tests/integration_test.sh @@ -12,7 +12,7 @@ docker run -itd \ -v $OUTPUT_DIR:/output \ --restart unless-stopped \ personal-mnemonic-medium \ - python application/main.py /input/ $OUTPUT_DIR \ + python personal_mnemonic_medium/cli.py /input/ $OUTPUT_DIR \ --watch \ --no-use-anki-connect From 066badd4a1798bde6d8d8f8daecef59058e18053 Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Sat, 18 Nov 2023 17:07:46 +0000 Subject: [PATCH 3/3] tests: fail integration test on first failue --- personal_mnemonic_medium/tests/integration_test.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/personal_mnemonic_medium/tests/integration_test.sh b/personal_mnemonic_medium/tests/integration_test.sh index b44aed92..fbd839c9 100755 --- a/personal_mnemonic_medium/tests/integration_test.sh +++ b/personal_mnemonic_medium/tests/integration_test.sh @@ -1,3 +1,4 @@ +set -e docker build . -t personal-mnemonic-medium:latest -f Dockerfile docker volume create ankidecks