File tree 7 files changed +40
-24
lines changed
7 files changed +40
-24
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- name : Check out the repository
13
- uses : actions/checkout@v3
13
+ uses : actions/checkout@v4
14
14
15
15
- name : Set up Python
16
- uses : actions/setup-python@v4
16
+ uses : actions/setup-python@v5
17
17
with :
18
18
python-version : ' 3.11'
19
19
@@ -22,16 +22,21 @@ jobs:
22
22
sudo add-apt-repository universe multiverse
23
23
sudo apt update && sudo apt install enchant-2 libffi-dev libssl-dev libxml2-dev libxslt1-dev gettext libfreetype-dev libjpeg-dev
24
24
25
- - name : Install dependencies
26
- run : |
27
- pip install -r requirements.txt
28
- pip install "Jinja2<3.1" "sphinx==5.0.*"
25
+ - name : Install uv
26
+ uses : astral-sh/setup-uv@v5
27
+ with :
28
+ enable-cache : true
29
+
30
+ - name : Install Python dependencies
31
+ run : uv sync --only-group doc
29
32
working-directory : doc
30
-
33
+
31
34
- name : Build documentation
32
- run : make html
35
+ run : |
36
+ source .venv/bin/activate
37
+ make html
33
38
working-directory : doc # Adjust to your Sphinx docs directory
34
-
39
+
35
40
- name : Copy CNAME if it exists
36
41
run : |
37
42
if [ -f CNAME ]; then cp CNAME doc/_build/html/; fi
40
45
uses : peaceiris/actions-gh-pages@v3
41
46
with :
42
47
github_token : ${{ secrets.GITHUB_TOKEN }}
43
- publish_dir : doc/_build/html
48
+ publish_dir : doc/_build/html
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ name: Docker-pr-deploy
2
2
on :
3
3
workflow_dispatch :
4
4
inputs :
5
- repository :
5
+ repository :
6
6
description : " Repository name with owner. For example, actions/checkout"
7
- ref :
7
+ ref :
8
8
description : " The branch, tag or SHA to checkout."
9
9
10
10
jobs :
@@ -17,13 +17,13 @@ jobs:
17
17
with :
18
18
repository : ${{ inputs.repository }}
19
19
ref : ${{ inputs.ref }}
20
-
20
+
21
21
- name : Log in to Docker Hub
22
22
uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
23
23
with :
24
24
username : ${{ secrets.DOCKER_USERNAME }}
25
25
password : ${{ secrets.DOCKER_PASSWORD }}
26
-
26
+
27
27
- name : Build and push Docker image
28
28
uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
29
29
with :
Original file line number Diff line number Diff line change @@ -12,19 +12,19 @@ jobs:
12
12
steps :
13
13
- name : Check out the repo
14
14
uses : actions/checkout@v2
15
-
15
+
16
16
- name : Log in to Docker Hub
17
17
uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
18
18
with :
19
19
username : ${{ secrets.DOCKER_USERNAME }}
20
20
password : ${{ secrets.DOCKER_PASSWORD }}
21
-
21
+
22
22
- name : Extract metadata (tags, labels) for Docker
23
23
id : meta
24
24
uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
25
25
with :
26
26
images : eventyay/eventyay-ticket
27
-
27
+
28
28
- name : Build and push Docker image
29
29
uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
30
30
with :
Original file line number Diff line number Diff line change @@ -19,22 +19,31 @@ jobs:
19
19
name : Spellcheck
20
20
runs-on : ubuntu-latest
21
21
steps :
22
- - uses : actions/checkout@v2
22
+ - name : Check out the repository
23
+ uses : actions/checkout@v4
24
+
23
25
- name : Set up Python 3.11
24
- uses : actions/setup-python@v1
26
+ uses : actions/setup-python@v5
25
27
with :
26
28
python-version : 3.11
29
+
27
30
- name : Install system packages
28
- run : sudo apt-get update && sudo apt-get install enchant-2 hunspell aspell-en
31
+ run : sudo apt-get update && sudo apt-get install enchant-2 hunspell aspell-en gettext
32
+
29
33
- name : Install uv
30
34
uses : astral-sh/setup-uv@v5
31
35
with :
32
36
enable-cache : true
37
+
33
38
- name : Install Dependencies
34
39
run : uv sync --only-group doc
40
+
35
41
- name : Spellcheck docs
36
- run : uv run make spelling
42
+ run : |
43
+ source .venv/bin/activate
44
+ make spelling
37
45
working-directory : ./doc
46
+
38
47
- name : Check no errors
39
48
run : ' [ ! -s _build/spelling/output.txt ]'
40
49
working-directory : ./doc
Original file line number Diff line number Diff line change 54
54
run : make npminstall
55
55
- name : Compile
56
56
working-directory : ./src
57
- run : uv run make all compress
57
+ run : |
58
+ source .venv/bin/activate
59
+ make all compress
58
60
- name : Run tests
59
61
working-directory : ./src
60
62
run : PRETIX_CONFIG_FILE=tests/travis_${{ matrix.database }}.cfg uv run pytest -n 3 -p no:sugar --cov=./ --cov-report=xml tests --maxfail=100
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ Activate your virtual environment (`uv` creates virtual environment in _.venv_ d
57
57
58
58
`uv ` automatically creates virtual environment in _.venv_ directory.
59
59
If you want to create virtual environment outside the project directory, you can do so with
60
- a different tool and tell `uv ` to repspect the activated virtual environment by setting the
60
+ a different tool and tell `uv ` to respect the activated virtual environment by setting the
61
61
`UV_PROJECT_ENVIRONMENT ` environment variable.
62
62
63
63
For Bash and Zsh:
Original file line number Diff line number Diff line change 1
1
[database]
2
- backend =postgresql_psycopg2
2
+ backend =postgresql
3
3
name =pretix
4
4
user =postgres
5
5
password =postgres
You can’t perform that action at this time.
0 commit comments