summaryrefslogtreecommitdiff
path: root/gitlab-ci.yml
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2024-03-03 18:02:31 -0300
committerRoger Gonzalez <roger@rogs.me>2024-03-03 18:02:31 -0300
commit5faf99bc3a0c4064017db62b7d8e33f7b9a4feb9 (patch)
tree5547c9daf03e16b6b19203fd0cf989e34e0e5663 /gitlab-ci.yml
parent5387c348a6a8401bad2f717f4d464f1549d5b405 (diff)
Added gitlab action to upload to PyPi
Diffstat (limited to 'gitlab-ci.yml')
-rw-r--r--gitlab-ci.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/gitlab-ci.yml b/gitlab-ci.yml
new file mode 100644
index 0000000..350b74e
--- /dev/null
+++ b/gitlab-ci.yml
@@ -0,0 +1,20 @@
+image: python:latest
+
+lint:
+ stage: test
+ before_script:
+ - pip install poetry
+ - poetry install --no-root
+ script:
+ - poetry run ruff check ./src
+ - poetry run ruff format --check ./src
+
+deploy_to_pypi:
+ stage: deploy
+ only:
+ - master
+ before_script:
+ - pip install poetry
+ - poetry install --no-root
+ script:
+ - POETRY_PYPI_TOKEN_PYPI=$PYPI_PASSWORD poetry publish --build