diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1c52a4e..82a7aab 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: @@ -20,15 +20,7 @@ jobs: pytest: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v6 - with: - python-version: '3.12' - - name: Update docker-compose - uses: KengoTODA/actions-setup-docker-compose@v1 - with: - version: "2.28.0" + - uses: actions/checkout@v7 - name: run tests run: docker compose run --build --rm api pytest -vv - name: show logs diff --git a/docker-compose.yml b/docker-compose.yml index abe2367..917b0f2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: restart: always ports: # Exposes application port. - - "8000:8000" + - "8000:8000" env_file: - path: .env required: false @@ -49,13 +49,14 @@ services: migrator: <<: *main_app restart: "no" - command: piccolo migrations forwards all + command: + - bash + - -c + - "ls && piccolo migrations forwards all" depends_on: db: condition: service_healthy - - volumes: zangramru-db-data: name: zangramru-db-data