fix instructions
This commit is contained in:
1 parent
8cb4ef3595
commit
5e4086b812
6 files changed
+49
-22
No files matched your search
@@ -0,0 +1,36 @@
|
||||
name: release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.7
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip3 install -e .
|
||||
pip3 install pytest wheel
|
||||
|
||||
- name: Run tests
|
||||
run: pytest -v tests
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
python3 setup.py sdist
|
||||
python3 setup.py bdist_wheel
|
||||
|
||||
- name: Release to PyPI
|
||||
env:
|
||||
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||
run: twine upload --verbose dist/* || echo 'File exists'
|
||||
Reference in new issue
Block a user