|
1 | 1 | 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 |
2 | 8 | 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 . |
9 | 10 | - make
|
10 | 11 | - coverage run -m pytest tests
|
11 | 12 | - coverage report
|
12 |
| - tags: |
13 |
| - - python3 |
14 | 13 | 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 |
15 | 20 | 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 . |
22 | 22 | - 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 . |
28 | 26 | 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 |
29 | 33 | 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 |
34 | 34 | - python -m build
|
35 | 35 | - check-manifest .
|
36 | 36 | - twine check dist/*
|
37 | 37 | - twine upload dist/*
|
38 |
| - tags: |
39 |
| - - python3 |
40 | 38 | only:
|
41 | 39 | - pypi
|
42 | 40 | artifacts:
|
|
0 commit comments