diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ebc4ddb..f3acf4d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,17 +8,21 @@ 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 INVENTREE_STATIC_ROOT: ../test_inventree_static INVENTREE_BACKUP_DIR: ../test_inventree_backup + INVENTREE_COOKIE_SAMESITE: False INVENTREE_ADMIN_USER: testuser INVENTREE_ADMIN_PASSWORD: testpassword INVENTREE_ADMIN_EMAIL: test@test.com INVENTREE_PYTHON_TEST_SERVER: http://localhost:12345 INVENTREE_PYTHON_TEST_USERNAME: testuser INVENTREE_PYTHON_TEST_PASSWORD: testpassword + INVENTREE_DEBUG: True + INVENTREE_LOG_LEVEL: DEBUG strategy: max-parallel: 4 @@ -44,7 +48,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: | diff --git a/test/docker-compose.yml b/test/docker-compose.yml index dba49b3..fa1932e 100644 --- a/test/docker-compose.yml +++ b/test/docker-compose.yml @@ -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: @@ -16,12 +14,14 @@ 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 - INVENTREE_ADMIN_USER=testuser - INVENTREE_ADMIN_PASSWORD=testpassword - INVENTREE_ADMIN_EMAIL=test@test.com + - INVENTREE_COOKIE_SAMESITE=False restart: unless-stopped volumes: - ./data:/home/inventree/data