Update GitLab CI script

This commit is contained in:
Raphael Michel
2024-05-31 17:46:45 +02:00
parent 1566f54764
commit 8010d2e6bb
2 changed files with 17 additions and 16 deletions
+16 -16
View File
@@ -1,29 +1,30 @@
before_script:
tests: tests:
image:
name: pretix/ci-image
stage: test stage: test
before_script:
- pip install -U pip uv
- uv pip install --system -U wheel setuptools
script: script:
- virtualenv env - uv pip install --system -e ".[dev]"
- source env/bin/activate
- pip install -U pip wheel setuptools
- XDG_CACHE_HOME=/cache pip3 install -e ".[dev]"
- cd src - cd src
- python manage.py check - python manage.py check
- make all compress - make all compress
- py.test --reruns 3 -n 3 tests - PRETIX_CONFIG_FILE=tests/travis_sqlite.cfg py.test --reruns 3 -n 3 tests --maxfail=100
tags:
- python3
except: except:
- pypi - pypi
pypi: pypi:
stage: release stage: release
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: script:
- cp /keys/.pypirc ~/.pypirc - uv pip install --system -e ".[dev]"
- virtualenv env
- source env/bin/activate
- pip install -U pip wheel setuptools check-manifest twine
- XDG_CACHE_HOME=/cache pip3 install -e ".[dev]"
- python setup.py sdist - python setup.py sdist
- pip install dist/pretix-*.tar.gz - uv pip install --system dist/pretix-*.tar.gz
- python -m pretix migrate - python -m pretix migrate
- python -m pretix check - python -m pretix check
- cd src - cd src
@@ -33,13 +34,12 @@ pypi:
- python -m build - python -m build
- twine check dist/* - twine check dist/*
- twine upload dist/* - twine upload dist/*
tags:
- python3
only: only:
- pypi - pypi
artifacts: artifacts:
paths: paths:
- src/dist/ - src/dist/
stages: stages:
- test - test
- build - build
+1
View File
@@ -20,6 +20,7 @@ DJANGO_SETTINGS_MODULE = tests.settings
addopts = --reruns 3 -rw addopts = --reruns 3 -rw
filterwarnings = filterwarnings =
error error
ignore:.*invalid escape sequence.*:
ignore:The 'warn' method is deprecated:DeprecationWarning ignore:The 'warn' method is deprecated:DeprecationWarning
ignore::django.utils.deprecation.RemovedInDjango51Warning:django.core.files.storage ignore::django.utils.deprecation.RemovedInDjango51Warning:django.core.files.storage
ignore:.*index_together.*:django.utils.deprecation.RemovedInDjango51Warning: ignore:.*index_together.*:django.utils.deprecation.RemovedInDjango51Warning: