Add timeout to POST request #19

Merged
luketainton merged 4 commits from fix/sc-reqtimeout into main 2022-12-30 21:45:43 +01:00
2 changed files with 4 additions and 13 deletions
Showing only changes of commit 9ef59b7b72 - Show all commits

View File

@ -31,20 +31,10 @@ jobs:
continue-on-error: true continue-on-error: true
- name: Unit Test - name: Unit Test
run: | run: |
coverage run -m py.test -v --junitxml=testresults.xml coverage run -m pytest -v --junitxml=testresults.xml
coverage xml coverage xml
- name: SonarCloud Scan - name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master uses: SonarSource/sonarcloud-github-action@master
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_CLOUD }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_CLOUD }}
# - name: SonarQube Scan
# uses: sonarsource/sonarqube-scan-action@master
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
# - name: SonarQube Quality Gate
# uses: sonarsource/sonarqube-quality-gate-action@master
# timeout-minutes: 5
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}