Going back to lint/deploy only #3

Merged
rogs merged 1 commits from test-linter into master 2023-08-17 12:27:55 -03:00
Showing only changes of commit 35221e8a2e - Show all commits

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