File tree 3 files changed +35
-8
lines changed
3 files changed +35
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ parallel = true
13
13
[report]
14
14
show_missing = true
15
15
precision = 2
16
- omit =
16
+ omit = */__init__.py
17
17
exclude_lines =
18
18
pragma: no cover
19
19
def __repr__
Original file line number Diff line number Diff line change
1
+ # This is GitHub Action for linting and security check
2
+ name : CI
3
+ on :
4
+ pull_request :
5
+ branches : [master]
6
+
7
+ jobs :
8
+ checks :
9
+ runs-on : ubuntu-18.04
10
+ strategy :
11
+ fail-fast : false
12
+ matrix :
13
+ python-version : ["3.10"]
14
+ env : [security, flake8, pylint]
15
+
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+
19
+ - name : Set up Python ${{ matrix.python-version }}
20
+ uses : actions/setup-python@v2
21
+ with :
22
+ python-version : ${{ matrix.python-version }}
23
+
24
+ - name : Run check
25
+ env :
26
+ TOXENV : ${{ matrix.env }}
27
+ run : |
28
+ pip install -U tox
29
+ tox
Original file line number Diff line number Diff line change @@ -27,31 +27,29 @@ commands =
27
27
redis41: pip install redis =4.1.4
28
28
redis42: pip install redis =4.2.2
29
29
pip install .
30
- python -m pytest -- ignore =setup.py # --cov-report term --cov=scrapy_redis
30
+ python -m pytest # --cov-report term --cov=scrapy_redis
31
31
32
32
[testenv:flake8]
33
- basepython = python3.8
33
+ basepython = python3.10
34
34
deps =
35
35
{[base]deps}
36
36
flake8 # https://github.com/tholo/pytest-flake8/issues/81
37
37
commands =
38
38
flake8 docs tests
39
39
40
40
[testenv:security]
41
- basepython = python3.8
41
+ basepython = python3.10
42
42
deps =
43
43
bandit ==1.7.3
44
44
commands =
45
45
bandit -r -c .bandit.yml src/ tests/
46
46
47
47
[testenv:pylint]
48
- basepython = python3.8
48
+ basepython = python3.10
49
49
deps =
50
50
{[base]deps}
51
51
pylint ==2.12.2
52
52
commands =
53
53
pylint setup.py docs/ src/ tests/
54
54
55
- # TODO: build windows/linux/mac
56
-
57
- # TODO: build docs
55
+ # TODO: build docs
You can’t perform that action at this time.
0 commit comments