File tree Expand file tree Collapse file tree 7 files changed +212
-28
lines changed Expand file tree Collapse file tree 7 files changed +212
-28
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,18 @@ jobs:
27
27
run : pipenv run pylint scraper
28
28
29
29
unit_tests :
30
+ strategy :
31
+ fail-fast : false
32
+ matrix :
33
+ python-version : [3.8, 3.9]
30
34
name : unit-tests
31
35
runs-on : ubuntu-18.04
32
36
steps :
33
37
- uses : actions/checkout@v2
34
- - name : Set up Python 3.8
38
+ - name : Set up Python ${{ matrix.python-version }}
35
39
uses : actions/setup-python@v1
36
40
with :
37
- python-version : 3.8
41
+ python-version : ${{ matrix.python-version }}
38
42
- name : Install pipenv
39
43
uses : dschep/install-pipenv-action@v1
40
44
- name : Install dependencies
@@ -43,14 +47,18 @@ jobs:
43
47
run : pipenv run pytest ./scraper/src -k "not _browser"
44
48
45
49
integration_tests :
50
+ strategy :
51
+ fail-fast : false
52
+ matrix :
53
+ python-version : [3.8, 3.9]
46
54
name : integration-tests
47
55
runs-on : ubuntu-18.04
48
56
steps :
49
57
- uses : actions/checkout@v2
50
- - name : Set up Python 3.8
58
+ - name : Set up Python ${{ matrix.python-version }}
51
59
uses : actions/setup-python@v1
52
60
with :
53
- python-version : 3.8
61
+ python-version : ${{ matrix.python-version }}
54
62
- name : Install pipenv
55
63
uses : dschep/install-pipenv-action@v1
56
64
- name : Install dependencies for production only
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ src/strategies/__pycache__/
9
9
.env
10
10
update.sh
11
11
.python-version
12
+ .tox
12
13
13
14
* yarn.lock
14
15
Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ pipenv run pylint scraper
49
49
pipenv run pytest ./scraper/src -k " not _browser"
50
50
```
51
51
52
+ Optionally tox can be used to run test on all supported version of Python and linting.
53
+
54
+ ``` bash
55
+ pipenv run tox
56
+ ```
57
+
52
58
## Git Guidelines
53
59
54
60
### Git Branches <!-- omit in TOC -->
Original file line number Diff line number Diff line change @@ -13,6 +13,5 @@ python-keycloak-client = "==0.2.3"
13
13
14
14
[dev-packages ]
15
15
pylint = " ==2.6.2"
16
-
17
- [requires ]
18
- python_version = " 3.8"
16
+ tox = " ==3.23.0"
17
+ tox-pipenv = " ==1.10.1"
You can’t perform that action at this time.
0 commit comments