Skip to content

Commit

Permalink
ci: try different if syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
terriko committed Dec 16, 2024
1 parent b0e5b7d commit 8d53066
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ jobs:
echo "sbom set to false"
fi
- name: "Put matrix into env variable"
env:
testgroup: $${{ matrix.testgroup }}

- name: Get date
id: get-date
run: |
Expand Down Expand Up @@ -267,7 +271,7 @@ jobs:
NO_EXIT_CVE_NUM=1 python -m cve_bin_tool.cli test/assets/test-kerberos-5-1.15.1.out
cp -r ~/.cache/cve-bin-tool cache
- name: Run async tests
if: ${{ env.sbom != 'true' && matrix.testgroup == 'async' }}
if: env.sbom != 'true' && env.testgroup == 'async'
run: >
pytest --cov --cov-append -n 32 -v --durations=50
--ignore=test/test_cli.py
Expand All @@ -278,17 +282,17 @@ jobs:
--ignore=test/test_scanner.py
--ignore=test/test_language_parser.py
- name: Run language parser tests
if: ${{ env.sbom != 'true' && matrix.testgroup == 'language' }}
if: env.sbom != 'true' && env.testgroup == 'language'
run: >
pytest --cov --cov-append -n 32 -v --durations=50
test/test_language_parser.py
- name: Run scanner tests
if: ${{ env.sbom != 'true' && matrix.testgroup == 'scanner' }}
if: env.sbom != 'true' && env.testgroup == 'scanner'
run: >
pytest --cov --cov-append -n 32 -v --durations=50
test/test_scanner.py
- name: Run synchronous tests
if: ${{ env.sbom != 'true' && matrix.testgroup == 'sync }}
if: env.sbom != 'true' && env.testgroup == 'sync
run: >
pytest -v --cov --cov-append --cov-report=xml --durations=50
test/test_cli.py
Expand Down

0 comments on commit 8d53066

Please sign in to comment.