From fffab18902bcf1a4f472032d7eebcb59dfa21c7c Mon Sep 17 00:00:00 2001 From: Philipp Martens Date: Tue, 14 Jan 2025 16:22:36 +0100 Subject: [PATCH] update smoke test for the built executable * smoke test should make sure that the artifact can be executed without error AND produces at least a non-empty output file for a small test input --- .github/workflows/build_executable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_executable.yml b/.github/workflows/build_executable.yml index 40f4b04..e3d8551 100644 --- a/.github/workflows/build_executable.yml +++ b/.github/workflows/build_executable.yml @@ -61,7 +61,7 @@ jobs: run: uv run pyinstaller --onefile --add-data "$sitepackage_dir/license_expression/data/scancode-licensedb-index.json:./license_expression/data" --add-data "$sitepackage_dir/spdx_tools/spdx/parser/tagvalue/*:./spdx_tools/spdx/parser/tagvalue" src/opossum_lib/cli.py - name: Test executable - run: dist/cli --help + run: dist/cli generate --spdx tests/data/SPDX.spdx && test -s "output.opossum" || exit 1 - name: Upload executable artifact uses: actions/upload-artifact@v4