Skip to content

Commit

Permalink
add tests to sonar cloud analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
emcek committed Aug 27, 2024
1 parent 52f53e2 commit 74938b3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,33 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: "Set up Python 3.12"
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: pip

- name: "Install MS Fonts"
run: |
curl -O https://lexics.github.io/assets/downloads/fonts/clearTypeFonts/consola.ttf
sudo mkdir -p /usr/share/fonts/truetype
sudo mv consola.ttf /usr/share/fonts/truetype
fc-cache -f
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip setuptools
pip install -Ur requirements_test.txt
- name: "Test with pytest"
env:
PYSIDE_DESIGNER_PLUGINS: .
PYTEST_QT_API: PySide6
DCSPY_NO_MSG_BOXES: 1
run: |
python -m pytest -v -m 'not e2e' --img_precision 0 --cov=dcspy --cov-report=xml --cov-branch
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@v3.0.0
env:
Expand Down

0 comments on commit 74938b3

Please sign in to comment.