diff --git a/.github/pylintrc b/.github/pylintrc index fc4492c9..b2fbe4f1 100644 --- a/.github/pylintrc +++ b/.github/pylintrc @@ -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 diff --git a/.github/workflows/pr-check-rust.yaml b/.github/workflows/pr-check-rust.yaml new file mode 100644 index 00000000..d3cd3c5e --- /dev/null +++ b/.github/workflows/pr-check-rust.yaml @@ -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 diff --git a/.github/workflows/pr-pylint.yaml b/.github/workflows/pr-pylint.yaml index 4f230cbc..096c8beb 100644 --- a/.github/workflows/pr-pylint.yaml +++ b/.github/workflows/pr-pylint.yaml @@ -6,8 +6,7 @@ on: - main pull_request: paths: - - 'sdk/python3/**' - + - 'sdk/python3/ccnp/**' workflow_dispatch: jobs: diff --git a/sdk/python3/ccnp/requirements.txt b/sdk/python3/ccnp/requirements.txt index 8b137891..e69de29b 100644 --- a/sdk/python3/ccnp/requirements.txt +++ b/sdk/python3/ccnp/requirements.txt @@ -1 +0,0 @@ -