Going back to lint/deploy only

This commit is contained in:
Roger Gonzalez 2023-08-17 12:27:06 -03:00
parent 90ad8925f7
commit 35221e8a2e
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6

View File

@ -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/*