Skip to content

Commit

Permalink
update smoke test for the built executable
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
PhilippMa committed Jan 14, 2025
1 parent 6a66297 commit fffab18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_executable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fffab18

Please sign in to comment.