From 224d7a4441ddf235138a2f6260b5fe45b6877cea Mon Sep 17 00:00:00 2001 From: Caroline Russell Date: Wed, 27 Nov 2024 13:12:23 -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..f0f960b92 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 -t python,python-c - 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 -t python,python-c if test -f new_snapshots/diffs.json; then echo "status=FAILED" >> "$GITHUB_ENV" fi