Going back to lint/deploy only
This commit is contained in:
parent
90ad8925f7
commit
35221e8a2e
@ -1,23 +1,5 @@
|
||||
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:
|
||||
stage: test
|
||||
before_script:
|
||||
@ -26,3 +8,13 @@ lint:
|
||||
- black --check src/
|
||||
- flake8 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