File tree 4 files changed +52
-39
lines changed
4 files changed +52
-39
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Deploy
2
+ on :
3
+ release :
4
+ types : [published]
5
+
6
+ jobs :
7
+ deploy :
8
+ name : Deploy
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v1
12
+
13
+ - name : Setup Python
14
+ uses : actions/setup-python@v1
15
+
16
+ - name : Install dependencies
17
+ run : |
18
+ pip install -U pipenv
19
+ pipenv install --dev --deploy
20
+
21
+ - name : Run tests
22
+ run : pipenv run tests
23
+
24
+ - name : Build distribution
25
+ run : pipenv run build
26
+
27
+ - name : Publish distribution to PyPI
28
+ uses : pypa/gh-action-pypi-publish@master
29
+ with :
30
+ user : ${{ secrets.PYPI_USERNAME }}
31
+ password : ${{ secrets.PYPI_PASSWORD }}
Original file line number Diff line number Diff line change
1
+ name : Test
2
+ on : push
3
+
4
+ jobs :
5
+ test :
6
+ name : Test
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v1
10
+
11
+ - name : Setup Python
12
+ uses : actions/setup-python@v1
13
+
14
+ - name : Install dependencies
15
+ run : |
16
+ pip install -U pipenv
17
+ pipenv install --dev --deploy
18
+
19
+ - name : Run tests
20
+ run : pipenv run tests
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ mypy = "*"
14
14
python_version = " 3.7"
15
15
16
16
[scripts ]
17
+ build = " python setup.py sdist bdist_wheel"
17
18
mypy = " mypy ."
18
19
tests = " python -m pytest"
You can’t perform that action at this time.
0 commit comments