Skip to content

Commit

Permalink
CI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Jan 10, 2025
1 parent d12e52a commit 64463c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INVENTREE_SITE_URL: http://localhost:8000
INVENTREE_DB_ENGINE: django.db.backends.sqlite3
INVENTREE_DB_NAME: ../inventree_unit_test_db.sqlite3
INVENTREE_MEDIA_ROOT: ../test_inventree_media
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
invoke install
invoke migrate
invoke dev.import-fixtures
invoke dev.server -a 127.0.0.1:12345 &
invoke dev.server -a 0.0.0.0:12345 &
invoke wait
- name: Run Tests
run: |
Expand Down
5 changes: 2 additions & 3 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
version: "3.8"

# Docker compose recipe for spawning a simple InvenTree server instance,
# to use for running local tests of the InvenTree python API
# We use the latest (master branch) InvenTree code for testing.

# The tests should be targetted at localhost:12345
# The tests should be targeted at localhost:12345

services:

Expand All @@ -16,6 +14,7 @@ services:
- 12345:8000
environment:
- INVENTREE_DEBUG=True
- INVENTREE_SITE_URL=http://localhost:12345
- INVENTREE_DB_ENGINE=sqlite
- INVENTREE_DB_NAME=/home/inventree/data/test_db.sqlite3
- INVENTREE_DEBUG_LEVEL=error
Expand Down

0 comments on commit 64463c0

Please sign in to comment.