-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into gz/refactor_name…
…s_verbosity
- Loading branch information
Showing
9 changed files
with
539 additions
and
13 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Security Code Scan | ||
|
||
on: | ||
schedule: | ||
# every UTC 7PM from Mon to Fri | ||
- cron: "0 19 * * 1-5" | ||
push: | ||
branches: | ||
- releases/* | ||
workflow_dispatch: # run on request (no need for PR) | ||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
jobs: | ||
Trivy-Scan: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Set up Python | ||
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
pip install . | ||
pip freeze > requirements.txt | ||
- name: Run Trivy security scan | ||
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: fs | ||
scan-ref: requirements.txt | ||
output: trivy-scan-results.txt | ||
- name: Run Trivy spdx scan | ||
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: fs | ||
scan-ref: requirements.txt | ||
format: spdx-json | ||
output: trivy-scan-results.spdx.json | ||
- name: Upload Trivy scan results | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 | ||
with: | ||
name: trivy-scan-results | ||
path: trivy-scan-results.* | ||
# Use always() to always run this step to publish scan results when there are test failures | ||
if: ${{ always() }} | ||
|
||
Bandit-Scan: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Set up Python | ||
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: pip install bandit | ||
- name: Bandit Scanning | ||
run: bandit -r -c .ci/ipas_default.config . -f txt -o bandit-scan-results.txt | ||
- name: Upload Bandit artifact | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 | ||
with: | ||
name: bandit-scan-results | ||
path: bandit-scan-results.txt | ||
# Use always() to always run this step to publish scan results when there are test failures | ||
if: ${{ always() }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: E2E test | ||
|
||
on: | ||
schedule: | ||
# every UTC 7PM from Mon to Fri | ||
- cron: "0 19 * * 1-5" | ||
workflow_dispatch: # run on request (no need for PR) | ||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
jobs: | ||
Pre-Merge-Checks: | ||
uses: ./.github/workflows/pre_merge.yml | ||
|
||
E2E-Test: | ||
runs-on: ubuntu-22.04 | ||
needs: Pre-Merge-Checks | ||
timeout-minutes: 120 | ||
# This is what will cancel the job concurrency | ||
concurrency: | ||
group: ${{ github.workflow }}-E2E-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Install Python | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: "3.10" | ||
- name: Install tox | ||
run: python -m pip install tox==4.4.6 | ||
- name: Run E2E Test | ||
run: tox -vv -e val-py310 -- tests/e2e --csv=.tox/val-py310/e2e-test.csv | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 | ||
with: | ||
name: e2e-test-results | ||
path: .tox/val-py310/*.csv | ||
# Use always() to always run this step to publish test results when there are test failures | ||
if: ${{ always() }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ otx_models/ | |
.mypy_cache | ||
.ruff_cache | ||
.coverage | ||
.tox | ||
|
||
*.jpg | ||
*.jpeg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ dev = [ | |
"pre-commit==3.7.0", | ||
"addict", | ||
] | ||
dev_timm = [ | ||
val = [ | ||
"timm==0.9.5", | ||
"onnx==1.14.1", | ||
] | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters