File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change
1
+ skips :
2
+ - B101
Original file line number Diff line number Diff line change
1
+ name : Checks
2
+ on : [push, pull_request]
3
+
4
+ jobs :
5
+ checks :
6
+ runs-on : ubuntu-latest
7
+ strategy :
8
+ matrix :
9
+ include :
10
+ - python-version : 3
11
+ env :
12
+ TOXENV : security
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+
17
+ - name : Set up Python ${{ matrix.python-version }}
18
+ uses : actions/setup-python@v2
19
+ with :
20
+ python-version : ${{ matrix.python-version }}
21
+
22
+ - name : Run check
23
+ env : ${{ matrix.env }}
24
+ run : |
25
+ pip install -U pip
26
+ pip install -U tox
27
+ tox
Original file line number Diff line number Diff line change 1
1
[tox]
2
- envlist = py
2
+ envlist = security, py
3
3
4
4
[testenv]
5
5
deps =
6
6
-r tests/requirements.txt
7
7
8
8
commands =
9
9
py.test --cov-report term --cov =cssselect
10
+
11
+ [testenv:security]
12
+ deps =
13
+ bandit
14
+ commands =
15
+ bandit -r -c .bandit.yml {posargs:cssselect}
You can’t perform that action at this time.
0 commit comments