From 0ee81bbd90abefaf20803e8a2033f14b9b495552 Mon Sep 17 00:00:00 2001 From: Dan Date: Mon, 20 Jun 2022 16:00:59 -0400 Subject: [PATCH] Updating docker action. --- .github/workflows/create-docker-action.yml | 23 ++++------------------ 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/.github/workflows/create-docker-action.yml b/.github/workflows/create-docker-action.yml index 7c65b29..d4725ee 100644 --- a/.github/workflows/create-docker-action.yml +++ b/.github/workflows/create-docker-action.yml @@ -10,23 +10,6 @@ env: SQLALCHEMY_DATABASE_URI: "postgresql://postgres:postgres@localhost:5432/pb_test" PGPASSWORD: postgres jobs: - sonarcloud: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - # Disabling shallow clone is recommended for improving relevancy of reporting - fetch-depth: 0 - - name: SonarCloud Scan - uses: sonarsource/sonarcloud-github-action@master - with: - args: > - -Dsonar.organization=sartography - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run_tests: runs-on: ubuntu-latest services: @@ -73,13 +56,15 @@ jobs: run: | pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry poetry --version - + poetry install + - name: Run the tests - run: poetry run coverage run -m pytest + run: poetry run -m pytest build-and-push-image: needs: - run_tests + - sonarcloud runs-on: ubuntu-latest permissions: contents: read