-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
30 lines (30 loc) · 911 Bytes
/
.gitlab-ci.yml
File metadata and controls
30 lines (30 loc) · 911 Bytes
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
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/