Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
Add Python code scan into Githu Action CI, also create an empty
Browse files Browse the repository at this point in the history
requirements.txt file required by pylink action

Co-authored-by: Le Yao <le.yao@intel.com>
Signed-off-by: Hongbo Wang <hongbo.wang@intel.co>
  • Loading branch information
hwang37 and Le Yao committed Jul 5, 2023
2 parents 2f12021 + fc7b381 commit 324fa75
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ ignore=CVS
# can't be used as an escape character.
ignore-paths=


# Files or directories matching the regular expression patterns are skipped.
# The regex matches against base names, not paths. The default value ignores
# Emacs file locks
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/pr-check-rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Rust Code Scan

on:
push:
branches:
- main
pull_request:
paths:
- 'service/quote-server/**.rs'
workflow_dispatch:

jobs:
codescan:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v3

- name: Set up Rust action
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Run cargo check
run: |
cd service/quote-server
cargo check
cargo fmt -- --check
cargo clippy
cargo install --locked cargo-deny
cargo deny check
3 changes: 1 addition & 2 deletions .github/workflows/pr-pylint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
- main
pull_request:
paths:
- 'sdk/python3/**'

- 'sdk/python3/ccnp/**'
workflow_dispatch:

jobs:
Expand Down
1 change: 0 additions & 1 deletion sdk/python3/ccnp/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

0 comments on commit 324fa75

Please sign in to comment.