From 8ce98368daa12b4c06a711d194c8a08ba40dbb7b Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Tue, 21 May 2024 08:15:16 -0600 Subject: [PATCH] switch to inline tests --- .github/workflows/ci.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbf8e56..78be17e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,23 +38,20 @@ jobs: - 5432:5432 steps: - uses: actions/checkout@v4 - - name: Setup docker buildx - uses: docker/setup-buildx-action@v3 - - name: Build container image - uses: docker/build-push-action@v5 + - name: Setup Python + uses: actions/setup-python@v5 with: - push: false - tags: ${{ env.IMAGE_NAME }}:ci - target: ci - load: true - cache-from: type=gha - cache-to: type=gha,mode=max + python-version: "3.12" + - name: Setup poetry + uses: abatilo/actions-poetry@v2 + with: + poetry-version: "1.8.3" + - name: Install dependencies + run: poetry install --with=test - name: Run pytest - uses: addnab/docker-run-action@v3 - with: - image: ${{ env.IMAGE_NAME }}:ci - options: -v ${{ github.workspace }}:/work -e DATABASE_URL=postgresql+psycopg://postgres:postgres@postgres:5432/postgres - run: pytest --cov=teufa tests/ + run: pytest --cov=teufa tests/ + env: + DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1 with: