File tree Expand file tree Collapse file tree 3 files changed +23
-14
lines changed Expand file tree Collapse file tree 3 files changed +23
-14
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,30 @@ jobs:
1616 with :
1717 python-version : ' 3.6'
1818
19- - name : Install dependencies
20- run : make build
21-
2219 - name : Run tests
2320 env :
2421 SANDBOX_API_KEY : ${{ secrets.SANDBOX_API_KEY }}
2522 run : make test
2623
27- - name : Publish to PyPi
28- run : make publish
24+ - name : Install pypa/build
25+ run : >-
26+ python -m
27+ pip install
28+ build
29+ --user
30+
31+ - name : Build a binary wheel and a source tarball
32+ run : >-
33+ python -m
34+ build
35+ --sdist
36+ --wheel
37+ --outdir dist/
38+ .
2939
40+ - name : Publish a Python distribution to PyPI
41+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
42+ uses : pypa/gh-action-pypi-publish@master
43+ with :
44+ user : __token__
45+ password : ${{ secrets.PYPI_API_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11SHELL = /bin/bash
22
33build :
4- pip install -r requirements.txt \
4+ pip install -r requirements.txt && \
55 python setup.py install
66
77lint :
1212 pip install -r requirements.txt && \
1313 python -m unittest discover test/
1414
15- publish :
16- python3 -m pip install --user --upgrade twine && \
17- python3 -m twine upload -r pypi dist/* --config-file .pypirc
18-
19- .PHONY : build test lint publish
15+ .PHONY : build lint test publish
You can’t perform that action at this time.
0 commit comments