File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -4,27 +4,33 @@ on: [push, pull_request]
4
4
5
5
jobs :
6
6
7
- build-p36 :
7
+ run-tests :
8
8
runs-on : ubuntu-latest
9
9
10
+ strategy :
11
+ matrix :
12
+ python-version : [ '3.6', '3.7' ]
13
+
14
+ name : Python ${{ matrix.python-version }} test
15
+
10
16
steps :
11
17
- uses : actions/checkout@v1
12
18
- uses : actions/setup-python@v1
13
19
with :
14
- python-version : 3.6
20
+ python-version : ${{ matrix.python-version }}
15
21
- uses : dschep/install-pipenv-action@v1
16
22
- name : Install dependencies
17
23
run : |
18
24
sudo apt install protobuf-compiler libprotobuf-dev
19
- pipenv install --dev
25
+ pipenv install --dev --python ${pythonLocation}/python
20
26
- name : Run tests
21
27
run : |
22
28
cp .env.default .env
23
29
pipenv run pip install -e .
24
30
pipenv run generate
25
31
pipenv run test
26
32
27
- build-p37 :
33
+ build-release :
28
34
runs-on : ubuntu-latest
29
35
30
36
steps :
36
42
- name : Install dependencies
37
43
run : |
38
44
sudo apt install protobuf-compiler libprotobuf-dev
39
- pipenv install --dev
40
- - name : Run tests
41
- run : |
42
- cp .env.default .env
43
- pipenv run pip install -e .
44
- pipenv run generate
45
- pipenv run test
45
+ pipenv install --dev --python ${pythonLocation}/python
46
46
- name : Build package
47
47
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
48
48
run : pipenv run python setup.py sdist
You can’t perform that action at this time.
0 commit comments