Skip to content

Commit 962f275

Browse files
Merge branch 'dev' into fix/payment-duplicate-confirmation
2 parents 97aa615 + 190bbf3 commit 962f275

File tree

455 files changed

+3437
-62989
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

455 files changed

+3437
-62989
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ src/dist/
1010
.venv
1111
app/.venv
1212
app/eventyay/static/CACHE
13+
app/eventyay/static.dist
14+
*.egg-info
15+
**/__pycache__
16+
**/node_modules

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy Documentation
33
on:
44
push:
55
branches:
6-
- enext
6+
- dev
77
- main
88
paths:
99
- 'doc/**'

.github/workflows/enext-docker-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Docker PR Build (enext)
1+
name: Docker PR Build (dev/main)
22

33
on:
44
pull_request:
5-
branches: [enext]
5+
branches: [ dev, main ]
66

77
jobs:
88
build_docker_image:
9-
name: Build Docker image for enext PR
9+
name: Build Docker image for dev PR
1010
runs-on: ubuntu-latest
1111

1212
steps:

.github/workflows/enext-docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Docker
22
on:
33
workflow_dispatch:
44
push:
5-
branches: [ enext ]
5+
branches: [ dev, main ]
66

77
jobs:
88
push_to_registry:
@@ -11,19 +11,19 @@ jobs:
1111
steps:
1212
- name: Check out the repo
1313
uses: actions/checkout@v2
14-
14+
1515
- name: Log in to Docker Hub
1616
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
1717
with:
1818
username: ${{ secrets.DOCKER_USERNAME }}
1919
password: ${{ secrets.DOCKER_PASSWORD }}
20-
20+
2121
- name: Extract metadata (tags, labels) for Docker
2222
id: meta
2323
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
2424
with:
2525
images: eventyay/eventyay-next
26-
26+
2727
- name: Build and push Docker image
2828
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
2929
with:

.github/workflows/tests.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,34 @@ on:
1414

1515
jobs:
1616
test:
17-
runs-on: ubuntu-22.04
17+
runs-on: ubuntu-24.04
1818
name: Tests
1919
strategy:
2020
matrix:
21-
python-version: [3.11]
22-
database: [sqlite, postgres]
23-
exclude:
24-
- database: sqlite
25-
python-version: 3.11
21+
python-version: [3.12]
22+
database: [postgres]
2623
steps:
2724
- uses: actions/checkout@v4
2825
- uses: harmon758/postgresql-action@v1
2926
with:
30-
postgresql version: '15'
27+
postgresql version: '16'
3128
postgresql db: 'pretix'
3229
postgresql user: 'postgres'
3330
postgresql password: 'postgres'
3431
if: matrix.database == 'postgres'
32+
- name: Install uv
33+
uses: astral-sh/setup-uv@v6
34+
with:
35+
version: latest
36+
enable-cache: true
3537
- name: Set up Python ${{ matrix.python-version }}
36-
uses: actions/setup-python@v5
38+
uses: actions/setup-python@v6
3739
with:
3840
python-version: ${{ matrix.python-version }}
39-
- uses: actions/cache@v4
40-
with:
41-
path: ~/.cache/pip
42-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
43-
restore-keys: |
44-
${{ runner.os }}-pip-
4541
- name: Install system dependencies
4642
run: sudo apt update && sudo apt install gettext
4743
- name: Install Python dependencies
48-
run: |
49-
sed -i '/eventyay-stripe/d' pyproject.toml
50-
sed -i '/eventyay-paypal/d' pyproject.toml
51-
pip3 install --ignore-requires-python -e ".[dev]" psycopg2-binary
44+
run: uv sync --all-extras --group test --no-editable
5245
- name: Run checks
5346
run: python manage.py check
5447
working-directory: ./src
@@ -60,10 +53,15 @@ jobs:
6053
run: make all compress
6154
- name: Run tests
6255
working-directory: ./src
63-
run: PRETIX_CONFIG_FILE=tests/travis_${{ matrix.database }}.cfg py.test -n 3 -p no:sugar --cov=./ --cov-report=xml --reruns 3 tests --maxfail=100
56+
run: pytest -n 3 -p no:sugar --cov=./ --cov-report=xml --reruns 3 tests --maxfail=100
6457
- name: Upload coverage
6558
uses: codecov/codecov-action@v1
6659
with:
6760
file: src/coverage.xml
6861
fail_ci_if_error: true
69-
if: matrix.database == 'postgres' && matrix.python-version == '3.11' && (github.ref == 'refs/heads/development' || github.ref == 'refs/heads/master')
62+
if: matrix.database == 'postgres' && matrix.python-version == '3.12' && (github.ref == 'refs/heads/development' || github.ref == 'refs/heads/master')
63+
env:
64+
EVY_POSTGRES_HOST: localhost
65+
EVY_POSTGRES_PORT: 5432
66+
EVY_POSTGRES_USER: postgres
67+
EVY_POSTGRES_DB: pretix

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ deployment/.env.dev
6060
deployment/.env.prod
6161
deployment/.env
6262
deployment/data
63+
*.local.cfg
64+
*.local.toml
65+
.secrets
66+
app/.env
6367

6468
# Emails which are not sent out to Internet are saved here.
6569
dev-sent-emails

0 commit comments

Comments
 (0)