mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-01-12 00:34:44 +00:00
Updating docker action.
This commit is contained in:
parent
3f588c398a
commit
0ee81bbd90
23
.github/workflows/create-docker-action.yml
vendored
23
.github/workflows/create-docker-action.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user