Skip to content

Commit 0da215e

Browse files
committed
add github PR workflow
1 parent 740b167 commit 0da215e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/checkpr.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: checkpr
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install deploy dependencies
20+
run: pip install .[deploy]
21+
- name: Install test dependencies
22+
run: pip install .[test]
23+
- name: Install code dependencies
24+
run: pip install .
25+
- name: Lint with pylint
26+
run: pylint -E src
27+
- name: Scan security vulnerabilities with bandit
28+
run: bandit -c pyproject.toml -r .

0 commit comments

Comments
 (0)