Skip to content

Commit

Permalink
Merge branch 'automatic-merge' into 'master'
Browse files Browse the repository at this point in the history
Update cookiecutter-e3 template on e3-core

See merge request it/e3-core!56
  • Loading branch information
adanaja committed Nov 8, 2024
2 parents dabc72e + 707db73 commit 215911b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ stages:
- checks
- tests linux
- tests windows
- upload

default:
services:
Expand Down Expand Up @@ -210,3 +211,23 @@ documentations:
CI_TOX_ENV: docs
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"

upload-python-registry:
extends: .linux-image
stage: upload
before_script:
- !reference [.linux-image, before_script]
- python -m pip install twine
script:
- CURRENT_DATE=$(date +"%Y%m%d%H%M")
- sed -i "s|[0-9][0-9.]*|&.${CURRENT_DATE}|" VERSION
- python -m pip wheel . -q --no-deps -C--python-tag=py3 -w build
- python -m twine upload --skip-existing
--repository-url https://${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/projects/202/packages/pypi
build/*.whl
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
PYTHON_VERSION: "3.11"
TWINE_PASSWORD: $CI_JOB_TOKEN
TWINE_USERNAME: gitlab-ci-token
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ extras = test
commands=
pytest -vvv --ignore=build --html=pytest-report.html \
--junit-xml=pytest-report.xml --self-contained-html \
--durations=10 \
xdist: -n auto \
cov: --e3-cov-rewrite {envsitepackagesdir} src \
cov: --cov {envsitepackagesdir}/e3/ --cov-branch \
Expand Down

0 comments on commit 215911b

Please sign in to comment.