From cfb96469d38ca03db1af2096990a42a9260606a0 Mon Sep 17 00:00:00 2001 From: Caroline Russell Date: Tue, 26 Nov 2024 17:43:19 -0500 Subject: [PATCH] tmp test python Signed-off-by: Caroline Russell --- .github/workflows/snapshot-tests.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/snapshot-tests.yml b/.github/workflows/snapshot-tests.yml index ae915152f..693f63c70 100644 --- a/.github/workflows/snapshot-tests.yml +++ b/.github/workflows/snapshot-tests.yml @@ -33,14 +33,16 @@ jobs: run: | cdxgen_tarball=$(pnpm pack | tail -1) npm install -g "$cdxgen_tarball" - git clone https://github.com/appthreat/cdxgen-samples.git original_snapshots python3.12 -m venv .venv source .venv/bin/activate && pip install -r test/diff/requirements.txt + git clone https://github.com/appthreat/cdxgen-samples.git original_snapshots + cd original_snapshots + git -c advice.detachedHead=false checkout update/expand_snapshots_2 - name: Generate scripts run: | source .venv/bin/activate - python test/diff/generate.py + python test/diff/generate.py -p wrapt - name: Upload shell scripts generated as artifact uses: actions/upload-artifact@v4 @@ -52,7 +54,6 @@ jobs: env: PREFER_MAVEN_DEPS_TREE: false run: | - rm -rf src_repos bash new_snapshots/cdxgen_commands.sh - name: Upload cdxgen boms @@ -65,7 +66,7 @@ jobs: - name: Test BOMs run: | source .venv/bin/activate - python test/diff/diff_tests.py --migrate-legacy + python test/diff/diff_tests.py --migrate-legacy -p wrapt if test -f new_snapshots/diffs.json; then echo "status=FAILED" >> "$GITHUB_ENV" fi