Skip to content

Commit

Permalink
feat: add propsector code analysis to CI run
Browse files Browse the repository at this point in the history
  • Loading branch information
vickywane committed Oct 16, 2022
1 parent f2dcdee commit a4d884a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Static Code Analysis Of Codebase
on: [push, pull_request]

jobs:
static_analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout and set up
uses: actions/checkout@v3

- name: Install Python for analysis
uses: actions/setup-python@v4
with:
python-version: 'pypy3.9'

- name: Install dependencies for analysis
run: |
python -m pip install --upgrade pip
pip install prospector
- name: Run static code analysis using Prospector tool
run: prospector --zero-exit > static_analyis.json

- name: Deploy Static Analysis Result to GitHub Artifacts
uses: actions/upload-artifact@v2
with:
name: static_analysis_result
path: static_analyis.json
1 change: 1 addition & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prospector==1.7.7

0 comments on commit a4d884a

Please sign in to comment.