Skip to content

Commit 5c75ad5

Browse files
author
GitHub Actions
committed
Regenerated examples for 3d37d6c
1 parent 3d37d6c commit 5c75ad5

File tree

6 files changed

+36
-45
lines changed

6 files changed

+36
-45
lines changed

examples/default/.copier/project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
_commit: 657c7f7
2+
_commit: d1876bd
33
_src_path: .
44
admin_email: [email protected]
55
author_name: John Doe

examples/default/Justfile

+11-14
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,22 @@ update:
3434
# TESTING/TYPES
3535
# ----------------------------------------------------------------------
3636

37-
test *ARGS:
38-
just command python -m pytest {{ ARGS }}
37+
# Run the Playwright codegen command within the 'app' container
38+
codegen *ARGS:
39+
@just command "python manage.py runserver 0.0.0.0:8000 & while ! curl -s http://0.0.0.0:8000 > /dev/null; do sleep 1; done; playwright codegen {{ ARGS }}; kill %1"
3940

4041
coverage:
4142
rm -rf htmlcov
4243
just command python -m coverage run -m pytest && python -m coverage html --skip-covered --skip-empty
4344

45+
# Run tests using pytest within the 'app' container, with optional arguments
46+
@test *ARGS:
47+
@just command "pytest {{ ARGS }}"
48+
49+
# Run tests with Playwright debug mode enabled, in the 'app' container, with optional arguments
50+
@test-debug *ARGS:
51+
docker compose run --rm --no-deps -e PWDEBUG=1 app pytest {{ ARGS }}
52+
4453
types:
4554
just command python -m mypy .
4655

@@ -119,10 +128,6 @@ build-prod:
119128
clean:
120129
@just down --volumes --rmi local
121130

122-
# Run the Playwright codegen command within the 'app' container
123-
codegen *ARGS:
124-
@just command "python manage.py runserver 0.0.0.0:8000 & while ! curl -s http://0.0.0.0:8000 > /dev/null; do sleep 1; done; playwright codegen {{ ARGS }}; kill %1"
125-
126131
# Run a command within the 'app' container
127132
command *ARGS:
128133
docker compose run --rm --no-deps app /bin/bash -c "{{ ARGS }}"
@@ -175,14 +180,6 @@ stop:
175180
tail *ARGS:
176181
@just logs '--follow {{ ARGS }}'
177182

178-
# Run tests using pytest within the 'app' container, with optional arguments
179-
@test *ARGS:
180-
@just command "pytest {{ ARGS }}"
181-
182-
# Run tests with Playwright debug mode enabled, in the 'app' container, with optional arguments
183-
@test-debug *ARGS:
184-
docker compose run --rm --no-deps -e PWDEBUG=1 app pytest {{ ARGS }}
185-
186183
# Start services using docker-compose, with optional arguments
187184
up *ARGS:
188185
docker compose up {{ ARGS }}

examples/postgis/.copier/project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
_commit: d4220ab
2+
_commit: '9795492'
33
_src_path: .
44
admin_email: [email protected]
55
author_name: John Doe

examples/postgis/Justfile

+11-14
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,22 @@ update:
3434
# TESTING/TYPES
3535
# ----------------------------------------------------------------------
3636

37-
test *ARGS:
38-
just command python -m pytest {{ ARGS }}
37+
# Run the Playwright codegen command within the 'app' container
38+
codegen *ARGS:
39+
@just command "python manage.py runserver 0.0.0.0:8000 & while ! curl -s http://0.0.0.0:8000 > /dev/null; do sleep 1; done; playwright codegen {{ ARGS }}; kill %1"
3940

4041
coverage:
4142
rm -rf htmlcov
4243
just command python -m coverage run -m pytest && python -m coverage html --skip-covered --skip-empty
4344

45+
# Run tests using pytest within the 'app' container, with optional arguments
46+
@test *ARGS:
47+
@just command "pytest {{ ARGS }}"
48+
49+
# Run tests with Playwright debug mode enabled, in the 'app' container, with optional arguments
50+
@test-debug *ARGS:
51+
docker compose run --rm --no-deps -e PWDEBUG=1 app pytest {{ ARGS }}
52+
4453
types:
4554
just command python -m mypy .
4655

@@ -119,10 +128,6 @@ build-prod:
119128
clean:
120129
@just down --volumes --rmi local
121130

122-
# Run the Playwright codegen command within the 'app' container
123-
codegen *ARGS:
124-
@just command "python manage.py runserver 0.0.0.0:8000 & while ! curl -s http://0.0.0.0:8000 > /dev/null; do sleep 1; done; playwright codegen {{ ARGS }}; kill %1"
125-
126131
# Run a command within the 'app' container
127132
command *ARGS:
128133
docker compose run --rm --no-deps app /bin/bash -c "{{ ARGS }}"
@@ -175,14 +180,6 @@ stop:
175180
tail *ARGS:
176181
@just logs '--follow {{ ARGS }}'
177182

178-
# Run tests using pytest within the 'app' container, with optional arguments
179-
@test *ARGS:
180-
@just command "pytest {{ ARGS }}"
181-
182-
# Run tests with Playwright debug mode enabled, in the 'app' container, with optional arguments
183-
@test-debug *ARGS:
184-
docker compose run --rm --no-deps -e PWDEBUG=1 app pytest {{ ARGS }}
185-
186183
# Start services using docker-compose, with optional arguments
187184
up *ARGS:
188185
docker compose up {{ ARGS }}

examples/with_vite/.copier/project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
_commit: 77dbade
2+
_commit: 4f7217d
33
_src_path: .
44
admin_email: [email protected]
55
author_name: John Doe

examples/with_vite/Justfile

+11-14
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,22 @@ update:
3434
# TESTING/TYPES
3535
# ----------------------------------------------------------------------
3636

37-
test *ARGS:
38-
just command python -m pytest {{ ARGS }}
37+
# Run the Playwright codegen command within the 'app' container
38+
codegen *ARGS:
39+
docker compose run --rm --no-deps -e DJANGO_VITE_DEV_SERVER_HOST=node app /bin/bash -c "python manage.py runserver 0.0.0.0:8000 & while ! curl -s http://0.0.0.0:8000 > /dev/null; do sleep 1; done; playwright codegen {{ ARGS }}; kill %1"
3940

4041
coverage:
4142
rm -rf htmlcov
4243
just command python -m coverage run -m pytest && python -m coverage html --skip-covered --skip-empty
4344

45+
# Run tests using pytest within the 'app' container, with optional arguments
46+
@test *ARGS:
47+
docker compose run --rm --no-deps -e DJANGO_VITE_DEV_SERVER_HOST=node app pytest {{ ARGS }}
48+
49+
# Run tests with Playwright debug mode enabled, in the 'app' container, with optional arguments
50+
@test-debug *ARGS:
51+
docker compose run --rm --no-deps -e DJANGO_VITE_DEV_SERVER_HOST=node -e PWDEBUG=1 app pytest {{ ARGS }}
52+
4453
types:
4554
just command python -m mypy .
4655

@@ -119,10 +128,6 @@ build-prod:
119128
clean:
120129
@just down --volumes --rmi local
121130

122-
# Run the Playwright codegen command within the 'app' container
123-
codegen *ARGS:
124-
docker compose run --rm --no-deps -e DJANGO_VITE_DEV_SERVER_HOST=node app /bin/bash -c "python manage.py runserver 0.0.0.0:8000 & while ! curl -s http://0.0.0.0:8000 > /dev/null; do sleep 1; done; playwright codegen {{ ARGS }}; kill %1"
125-
126131
# Run a command within the 'app' container
127132
command *ARGS:
128133
docker compose run --rm --no-deps app /bin/bash -c "{{ ARGS }}"
@@ -175,14 +180,6 @@ stop:
175180
tail *ARGS:
176181
@just logs '--follow {{ ARGS }}'
177182

178-
# Run tests using pytest within the 'app' container, with optional arguments
179-
@test *ARGS:
180-
docker compose run --rm --no-deps -e DJANGO_VITE_DEV_SERVER_HOST=node app pytest {{ ARGS }}
181-
182-
# Run tests with Playwright debug mode enabled, in the 'app' container, with optional arguments
183-
@test-debug *ARGS:
184-
docker compose run --rm --no-deps -e DJANGO_VITE_DEV_SERVER_HOST=node -e PWDEBUG=1 app pytest {{ ARGS }}
185-
186183
# Start services using docker-compose, with optional arguments
187184
up *ARGS:
188185
docker compose up {{ ARGS }}

0 commit comments

Comments
 (0)