Going back to lint/deploy only #3
@ -1,23 +1,5 @@
|
|||||||
image: python:latest
|
image: python:latest
|
||||||
|
|
||||||
build_pypi_packages:
|
|
||||||
stage: build
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
before_script:
|
|
||||||
- pip install build
|
|
||||||
script:
|
|
||||||
- python -m build
|
|
||||||
|
|
||||||
deploy_to_pypi:
|
|
||||||
stage: deploy
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
before_script:
|
|
||||||
- pip install twine
|
|
||||||
script:
|
|
||||||
- TWINE_PASSWORD=$PYPI_PASSWORD TWINE_USERNAME=$PYPI_USERNAME python3 -m twine upload dist/*
|
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
stage: test
|
stage: test
|
||||||
before_script:
|
before_script:
|
||||||
@ -26,3 +8,13 @@ lint:
|
|||||||
- black --check src/
|
- black --check src/
|
||||||
- flake8 src/
|
- flake8 src/
|
||||||
- isort -c src/
|
- isort -c src/
|
||||||
|
|
||||||
|
deploy_to_pypi:
|
||||||
|
stage: deploy
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
before_script:
|
||||||
|
- pip install build twine
|
||||||
|
script:
|
||||||
|
- python -m build
|
||||||
|
- TWINE_PASSWORD=$PYPI_PASSWORD TWINE_USERNAME=$PYPI_USERNAME python3 -m twine upload dist/*
|
||||||
|
Reference in New Issue
Block a user