File tree 3 files changed +23
-14
lines changed
3 files changed +23
-14
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,30 @@ jobs:
16
16
with :
17
17
python-version : ' 3.6'
18
18
19
- - name : Install dependencies
20
- run : make build
21
-
22
19
- name : Run tests
23
20
env :
24
21
SANDBOX_API_KEY : ${{ secrets.SANDBOX_API_KEY }}
25
22
run : make test
26
23
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
+ .
29
39
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 1
1
SHELL = /bin/bash
2
2
3
3
build :
4
- pip install -r requirements.txt \
4
+ pip install -r requirements.txt && \
5
5
python setup.py install
6
6
7
7
lint :
12
12
pip install -r requirements.txt && \
13
13
python -m unittest discover test/
14
14
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