Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderDokuchaev committed Jan 9, 2025
1 parent 1712f38 commit d95e404
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ jobs:
with:
category: "/language:python"

# Pdf reports always empty for PRs
# pdf reports always empty for pull_request
- name: Generate Security Report
# if: ${{ github.event_name != 'pull_request' }}
if: ${{ github.event_name != 'pull_request' }}
uses: rsdmike/github-security-report-action@a149b24539044c92786ec39af8ba38c93496495d # v3.0.4
with:
template: report
token: ${{ secrets.GITHUB_TOKEN }}
- name: Rename Report
shell: bash
continue-on-error: true
if: ${{ github.event_name != 'pull_request' }}
run: |
DATE=$(date +"%Y-%m-%d")
REF_NAME="${{ github.ref_name }}"
mv "report.pdf" "codeql_nncf_report_${DATE}_${REF_NAME//\//-}_${{ github.sha }}.pdf"
- name: Upload CodeQL Artifacts
# if: ${{ github.event_name != 'pull_request' }}
if: ${{ github.event_name != 'pull_request' }}
uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2
with:
name: codeql-scan-results
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# name: precommit
# permissions: read-all
name: precommit
permissions: read-all

# on:
# pull_request:
# types:
# - opened
# - reopened
# - synchronize
# paths-ignore:
# - '**/*.md'
# - 'docs/**/*'
# - 'tests/post_training/*' # post_training tests runs on Jenkins
# - 'tests/torch/sota_checkpoints_eval.json' # reference for PT e2e
# - 'tests/tensorflow/sota_checkpoints_eval.json' # reference for TF e2e
# - 'tests/cross_fw/examples/*' # examples tests runs in separate workflow
on:
pull_request:
types:
- opened
- reopened
- synchronize
paths-ignore:
- '**/*.md'
- 'docs/**/*'
- 'tests/post_training/*' # post_training tests runs on Jenkins
- 'tests/torch/sota_checkpoints_eval.json' # reference for PT e2e
- 'tests/tensorflow/sota_checkpoints_eval.json' # reference for TF e2e
- 'tests/cross_fw/examples/*' # examples tests runs in separate workflow

# jobs:
# pytest:
# uses: ./.github/workflows/call_precommit.yml
# with:
# python_version: "3.10.14"
# gpu_enabled: true
jobs:
pytest:
uses: ./.github/workflows/call_precommit.yml
with:
python_version: "3.10.14"
gpu_enabled: true

0 comments on commit d95e404

Please sign in to comment.