diff --git a/.github/workflows/check_smoke_tests.yml b/.github/workflows/check_smoke_tests.yml index c70d512c..b2825ee2 100644 --- a/.github/workflows/check_smoke_tests.yml +++ b/.github/workflows/check_smoke_tests.yml @@ -11,14 +11,14 @@ jobs: runs-on: ubuntu-latest # TODO: modify smoke tests to cover multiple db types - # services: - # db: - # image: postgres:17 - # env: - # POSTGRES_USER: postgres - # POSTGRES_PASSWORD: pw - # ports: - # - 5432:5432 + services: + db: + image: postgres:17 + env: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: pw + ports: + - 5432:5432 steps: - name: Check out repository @@ -27,10 +27,10 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Prepare SQLite Database - run: | - # Ensure the SQLite database file exists - touch test.db + # - name: Prepare SQLite Database + # run: | + # # Ensure the SQLite database file exists + # touch test.db - name: Build RecordLinker Docker Image run: | @@ -41,8 +41,7 @@ jobs: # Start Record Linker Service with SQLite docker run -d --name rl-service \ --network="host" \ - -e DB_URI="sqlite:///test.db" \ - -v $PWD/test.db:/app/test.db \ + -e DB_URI="postgresql+psycopg2://postgres:pw@localhost:5432/postgres" \ -p 8080:8080 \ rl-service-image