diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 288e20609a..a9d4ef9f54 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,29 +1,30 @@ -before_script: tests: + image: + name: pretix/ci-image stage: test + before_script: + - pip install -U pip uv + - uv pip install --system -U wheel setuptools script: - - virtualenv env - - source env/bin/activate - - pip install -U pip wheel setuptools - - XDG_CACHE_HOME=/cache pip3 install -e ".[dev]" + - uv pip install --system -e ".[dev]" - cd src - python manage.py check - make all compress - - py.test --reruns 3 -n 3 tests - tags: - - python3 + - PRETIX_CONFIG_FILE=tests/travis_sqlite.cfg py.test --reruns 3 -n 3 tests --maxfail=100 except: - pypi pypi: 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: - - cp /keys/.pypirc ~/.pypirc - - virtualenv env - - source env/bin/activate - - pip install -U pip wheel setuptools check-manifest twine - - XDG_CACHE_HOME=/cache pip3 install -e ".[dev]" + - uv pip install --system -e ".[dev]" - 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 check - cd src @@ -33,13 +34,12 @@ pypi: - python -m build - twine check dist/* - twine upload dist/* - tags: - - python3 only: - pypi artifacts: paths: - src/dist/ + stages: - test - build diff --git a/src/setup.cfg b/src/setup.cfg index 8a7411dc39..3db413cf3f 100644 --- a/src/setup.cfg +++ b/src/setup.cfg @@ -20,6 +20,7 @@ DJANGO_SETTINGS_MODULE = tests.settings addopts = --reruns 3 -rw filterwarnings = error + ignore:.*invalid escape sequence.*: ignore:The 'warn' method is deprecated:DeprecationWarning ignore::django.utils.deprecation.RemovedInDjango51Warning:django.core.files.storage ignore:.*index_together.*:django.utils.deprecation.RemovedInDjango51Warning: