Skip to content

Commit

Permalink
Update CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Jun 13, 2024
1 parent c38fb20 commit 814a414
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions {{cookiecutter.repo_name}}/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,40 @@
test:
image:
name: pretix/ci-image
before_script:
- pip install -U pip uv
- uv pip install --system -U wheel setuptools pytest pytest-django coverage
- uv pip install --system -U git+https://github.com/pretix/pretix.git@master#egg=pretix
script:
- cp /keys/.pypirc ~/.pypirc
- virtualenv /tmp/env
- source /tmp/env/bin/activate
- XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools pytest pytest-django coverage
- XDG_CACHE_HOME=/cache pip3 install -U "git+https://github.com/pretix/pretix.git@master#egg=pretix"
- python setup.py develop
- uv pip install --system -e .
- make
- coverage run -m pytest tests
- coverage report
tags:
- python3
style:
image:
name: pretix/ci-image
before_script:
- pip install -U pip uv
- uv pip install --system -U wheel setuptools isort black flake8 check-manifest
- uv pip install --system -U git+https://github.com/pretix/pretix.git@master#egg=pretix
script:
- cp /keys/.pypirc ~/.pypirc
- virtualenv /tmp/env
- source /tmp/env/bin/activate
- XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools isort black flake8 check-manifest
- XDG_CACHE_HOME=/cache pip3 install -U "git+https://github.com/pretix/pretix.git@master#egg=pretix"
- python setup.py develop
- uv pip install --system -e .
- black --check .
- isort -c .
- flake8 .
- check-manifest .
tags:
- python3
- isort -c --gitignore .
- flake8 --extend-exclude .cache .
- check-manifest --ignore .cache .
pypi:
image:
name: pretix/ci-image
before_script:
- cat $PYPIRC > ~/.pypirc
- pip install -U pip uv
- uv pip install --system -U wheel setuptools twine build pretix-plugin-build check-manifest
script:
- cp /keys/.pypirc ~/.pypirc
- virtualenv /tmp/env
- source /tmp/env/bin/activate
- XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools twine build pretix-plugin-build check-manifest
- python -m build
- check-manifest .
- twine check dist/*
- twine upload dist/*
tags:
- python3
only:
- pypi
artifacts:
Expand Down

0 comments on commit 814a414

Please sign in to comment.