Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit48b7714

Browse files
committed
Try testing frontend on GitHub using docker-compose
1 parent15bd013 commit48b7714

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

‎.github/workflows/pytest.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,14 @@ jobs:
1818
export PATH=$HOME/.poetry/bin/:$PATH
1919
./setup.sh
2020
poetry run pytest -k 'not test_frontend'
21+
-name:Bring up docker cluster
22+
run:docker-compose up -d
23+
-name:Install chromedriver
24+
uses:nanasess/setup-chromedriver@master
25+
-name:Test frontend
26+
working-directory:./backend
27+
run:|
28+
export DISPLAY=:99
29+
chromedriver --url-base=/wd/hub &
30+
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
31+
poetry run pytest -k 'test_frontend'

‎backend/main/management/commands/init_db.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def handle(self, *args, **kwargs):
2020
first_name="Admin",
2121
last_name="Adminson",
2222
email="admin@example.com",
23+
developer_mode=True,
2324
)
2425

2526
print("Modifying site")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp