Skip to content

Commit 64463c0

Browse files
CI tweaks
1 parent d12e52a commit 64463c0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88

99
env:
1010
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11+
INVENTREE_SITE_URL: http://localhost:8000
1112
INVENTREE_DB_ENGINE: django.db.backends.sqlite3
1213
INVENTREE_DB_NAME: ../inventree_unit_test_db.sqlite3
1314
INVENTREE_MEDIA_ROOT: ../test_inventree_media
@@ -44,7 +45,7 @@ jobs:
4445
invoke install
4546
invoke migrate
4647
invoke dev.import-fixtures
47-
invoke dev.server -a 127.0.0.1:12345 &
48+
invoke dev.server -a 0.0.0.0:12345 &
4849
invoke wait
4950
- name: Run Tests
5051
run: |

test/docker-compose.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
version: "3.8"
2-
31
# Docker compose recipe for spawning a simple InvenTree server instance,
42
# to use for running local tests of the InvenTree python API
53
# We use the latest (master branch) InvenTree code for testing.
64

7-
# The tests should be targetted at localhost:12345
5+
# The tests should be targeted at localhost:12345
86

97
services:
108

@@ -16,6 +14,7 @@ services:
1614
- 12345:8000
1715
environment:
1816
- INVENTREE_DEBUG=True
17+
- INVENTREE_SITE_URL=http://localhost:12345
1918
- INVENTREE_DB_ENGINE=sqlite
2019
- INVENTREE_DB_NAME=/home/inventree/data/test_db.sqlite3
2120
- INVENTREE_DEBUG_LEVEL=error

0 commit comments

Comments
 (0)