Skip to content

Commit

Permalink
tmp test python
Browse files Browse the repository at this point in the history
Signed-off-by: Caroline Russell <[email protected]>
  • Loading branch information
cerrussell committed Nov 26, 2024
1 parent c973bb4 commit cfb9646
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/snapshot-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit cfb9646

Please sign in to comment.