Skip to content

Commit 814a414

Browse files
committed
Update CI script
1 parent c38fb20 commit 814a414

File tree

1 file changed

+23
-25
lines changed

1 file changed

+23
-25
lines changed

{{cookiecutter.repo_name}}/.gitlab-ci.yml

+23-25
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,40 @@
11
test:
2+
image:
3+
name: pretix/ci-image
4+
before_script:
5+
- pip install -U pip uv
6+
- uv pip install --system -U wheel setuptools pytest pytest-django coverage
7+
- uv pip install --system -U git+https://github.com/pretix/pretix.git@master#egg=pretix
28
script:
3-
- cp /keys/.pypirc ~/.pypirc
4-
- virtualenv /tmp/env
5-
- source /tmp/env/bin/activate
6-
- XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools pytest pytest-django coverage
7-
- XDG_CACHE_HOME=/cache pip3 install -U "git+https://github.com/pretix/pretix.git@master#egg=pretix"
8-
- python setup.py develop
9+
- uv pip install --system -e .
910
- make
1011
- coverage run -m pytest tests
1112
- coverage report
12-
tags:
13-
- python3
1413
style:
14+
image:
15+
name: pretix/ci-image
16+
before_script:
17+
- pip install -U pip uv
18+
- uv pip install --system -U wheel setuptools isort black flake8 check-manifest
19+
- uv pip install --system -U git+https://github.com/pretix/pretix.git@master#egg=pretix
1520
script:
16-
- cp /keys/.pypirc ~/.pypirc
17-
- virtualenv /tmp/env
18-
- source /tmp/env/bin/activate
19-
- XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools isort black flake8 check-manifest
20-
- XDG_CACHE_HOME=/cache pip3 install -U "git+https://github.com/pretix/pretix.git@master#egg=pretix"
21-
- python setup.py develop
21+
- uv pip install --system -e .
2222
- black --check .
23-
- isort -c .
24-
- flake8 .
25-
- check-manifest .
26-
tags:
27-
- python3
23+
- isort -c --gitignore .
24+
- flake8 --extend-exclude .cache .
25+
- check-manifest --ignore .cache .
2826
pypi:
27+
image:
28+
name: pretix/ci-image
29+
before_script:
30+
- cat $PYPIRC > ~/.pypirc
31+
- pip install -U pip uv
32+
- uv pip install --system -U wheel setuptools twine build pretix-plugin-build check-manifest
2933
script:
30-
- cp /keys/.pypirc ~/.pypirc
31-
- virtualenv /tmp/env
32-
- source /tmp/env/bin/activate
33-
- XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools twine build pretix-plugin-build check-manifest
3434
- python -m build
3535
- check-manifest .
3636
- twine check dist/*
3737
- twine upload dist/*
38-
tags:
39-
- python3
4038
only:
4139
- pypi
4240
artifacts:

0 commit comments

Comments
 (0)