@@ -14,39 +14,29 @@ jobs:
14
14
- uses : actions/setup-python@v1
15
15
with :
16
16
python-version : 3.7
17
- - uses : dschep/install-pipenv-action@v1
17
+ - uses : Gr1N/setup-poetry@v2
18
18
- name : Install dependencies
19
- run : |
20
- pipenv install --dev --python ${pythonLocation}/python
19
+ run : make setup
21
20
- name : Run black
22
- run : |
23
- pipenv run black . --check --diff --exclude tests/output_
21
+ run : make check-style
24
22
25
23
run-tests :
26
24
runs-on : ubuntu-latest
27
25
28
- strategy :
29
- matrix :
30
- python-version : [ '3.6', '3.7' ]
31
-
32
- name : Python ${{ matrix.python-version }} test
26
+ name : Run tests with tox
33
27
34
28
steps :
35
29
- uses : actions/checkout@v1
36
30
- uses : actions/setup-python@v1
37
31
with :
38
- python-version : ${{ matrix.python-version }}
39
- - uses : dschep/install-pipenv-action@v1
32
+ python-version : 3.7
33
+ - uses : Gr1N/setup-poetry@v2
40
34
- name : Install dependencies
41
35
run : |
42
36
sudo apt install protobuf-compiler libprotobuf-dev
43
- pipenv install --dev --python ${pythonLocation}/python
37
+ make setup
44
38
- name : Run tests
45
- run : |
46
- cp .env.default .env
47
- pipenv run pip install -e .
48
- pipenv run generate
49
- pipenv run test
39
+ run : make full-test
50
40
51
41
build-release :
52
42
runs-on : ubuntu-latest
@@ -56,17 +46,11 @@ jobs:
56
46
- uses : actions/setup-python@v1
57
47
with :
58
48
python-version : 3.7
59
- - uses : dschep/install-pipenv-action@v1
60
- - name : Install dependencies
61
- run : |
62
- sudo apt install protobuf-compiler libprotobuf-dev
63
- pipenv install --dev --python ${pythonLocation}/python
49
+ - uses : Gr1N/setup-poetry@v2
64
50
- name : Build package
51
+ run : poetry build
52
+ - name : Publish package to PyPI
65
53
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
66
- run : pipenv run python setup.py sdist
67
- - name : Publish package
68
- if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
69
-
70
- with :
71
- user : __token__
72
- password : ${{ secrets.pypi }}
54
+ run : poetry publish -n
55
+ env :
56
+ POETRY_PYPI_TOKEN_PYPI : ${{ secrets.pypi }}
0 commit comments