Skip to content

Commit

Permalink
Run pre-commit job alone including static-analysis step
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl committed Aug 20, 2024
1 parent cbb9db1 commit 97b4db4
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/pr_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,9 @@ concurrency:
cancel-in-progress: true

jobs:
static_analysis:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install Dependencies and library
shell: bash
run: |
set -ux
python -m pip install uv
uv pip install --system .[dev]
- name: Run mypy
shell: bash
run: mypy

- name: Run bandit
shell: bash
run: bandit -c pyproject.toml -r faststream

- name: Run Semgrep
shell: bash
run: semgrep scan --config auto --error

pre-commit-check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
env:
SKIP: "static-analysis"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -498,7 +469,6 @@ jobs:
if: github.event.pull_request.draft == false

needs:
- static_analysis
- pre-commit-check
- coverage-combine
- test-macos-latest
Expand Down

0 comments on commit 97b4db4

Please sign in to comment.