-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
42 lines (42 loc) · 1.29 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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:
- uv pip install --system -e .
- make
- coverage run -m pytest tests
- coverage report
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:
- uv pip install --system -e .
- black --check .
- 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:
- python -m build
- check-manifest .
- twine check dist/*
- twine upload dist/*
only:
- pypi
artifacts:
paths:
- dist/