Updating docker action.

This commit is contained in:
Dan 2022-06-20 16:00:59 -04:00
parent 3f588c398a
commit 0ee81bbd90

View File

@ -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