Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,20 @@ jobs:
- name: Install dispatcherd
run: pip install -e .[pg_notify,metrics]
- run: make postgres
- run: pip install pytest pytest-asyncio httpx
- run: pytest tests/unit tests/integration -vv -s
- run: pip install -r requirements_dev.txt
- run: pytest tests/unit tests/integration --cov=. --cov-report=xml:coverage.xml --cov-report=html --cov-report=json -vv -s

- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@master
if: github.event_name == 'pull_request'
env:
SONAR_TOKEN: ${{ secrets.CICD_ORG_SONAR_TOKEN_CICD_BOT }}
with:
args: >
-Dsonar.scm.revision=${{ github.event.workflow_run.head_sha }}
-Dsonar.pullrequest.key=${{ env.PR_NUMBER }}
-Dsonar.pullrequest.branch=${{ env.PR_HEAD }}
-Dsonar.pullrequest.base=${{ env.PR_BASE }}

black:
name: Run black
Expand Down
4 changes: 3 additions & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pytest
pytest-asyncio
pytest-benchmark
pytest-benchmark # for benchmark tests
pytest-cov # for SonarCloud
httpx # used for the metrics server test
Loading