-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
57 lines (57 loc) · 1.79 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
57 lines (57 loc) · 1.79 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
test:
image:
name: pretix/ci-image
services:
- name: postgres:16
alias: postgres
variables:
POSTGRES_DB: pretix
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
EVY_RUNNING_ENVIRONMENT: testing
EVY_POSTGRES_HOST: postgres
EVY_POSTGRES_PORT: "5432"
EVY_POSTGRES_USER: postgres
EVY_POSTGRES_PASSWORD: postgres
EVY_POSTGRES_DB: pretix
before_script:
- pip install -U pip uv
- git clone --depth 1 -b dev https://github.com/fossasia/eventyay.git eventyay-host
- uv pip install --system -U wheel setuptools coverage
- uv pip install --system -e "./eventyay-host/app"
- uv pip install --system pytest pytest-django pytest-env
script:
- uv pip install --system -e .
- python -c "import eventyay.config.settings; print('eventyay OK')"
- make
- coverage run -m pytest tests -v
- coverage report
style:
image:
name: pretix/ci-image
before_script:
- pip install -U pip uv
- uv pip install --system -U wheel setuptools ruff check-manifest
- uv pip install --system -U git+https://github.com/pretix/pretix.git@master#egg=pretix
script:
- uv pip install --system -e .
- ruff check .
- ruff format --check .
- 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/