|
@@ -1,6 +1,13 @@
|
|
|
name: Python tests
|
|
name: Python tests
|
|
|
|
|
|
|
|
-on: [workflow_dispatch, pull_request, push]
|
|
|
|
|
|
|
+on:
|
|
|
|
|
+ workflow_dispatch:
|
|
|
|
|
+ pull_request:
|
|
|
|
|
+ paths:
|
|
|
|
|
+ - '**.py'
|
|
|
|
|
+ push:
|
|
|
|
|
+ paths:
|
|
|
|
|
+ - '**.py'
|
|
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
|
tests:
|
|
tests:
|
|
@@ -21,7 +28,8 @@ jobs:
|
|
|
run: |
|
|
run: |
|
|
|
python -m pip install --upgrade pip
|
|
python -m pip install --upgrade pip
|
|
|
pip install -r requirements-dev.txt
|
|
pip install -r requirements-dev.txt
|
|
|
- - name: Test with pytest
|
|
|
|
|
|
|
+ - name: Full test with pytest
|
|
|
|
|
+ if: ${{github.event.
|
|
|
run: pytest --cov=. --cov-config=.coveragerc --cov-report xml:coverage.xml
|
|
run: pytest --cov=. --cov-config=.coveragerc --cov-report xml:coverage.xml
|
|
|
- name: SonarCloud scan
|
|
- name: SonarCloud scan
|
|
|
uses: sonarsource/sonarcloud-github-action@master
|
|
uses: sonarsource/sonarcloud-github-action@master
|