Skip to content

Commit

Permalink
fix: workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
EuleMitKeule committed Mar 3, 2023
1 parent 2fdfcf4 commit 069c389
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: Install dependencies
run: |
poetry install
poetry add twine
- name: Build and publish
env:
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-python@v4
with:
Expand All @@ -33,20 +33,20 @@ jobs:
run: |
poetry install --with test
- name: Run tests
run: |
pytest --cov=estimenergy --cov-report=xml
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.organization=${{ env.SONAR_PROJECT_ORGANIZATION }}
-Dsonar.projectKey=${{ env.SONAR_PROJECT_KEY }}
-Dsonar.python.coverage.reportPaths=coverage.xml
-Dsonar.sources=estimenergy,custom_components/estimenergy
-Dsonar.tests=tests/
-Dsonar.python.version=3.9
- name: Run tests
run: |
pytest --cov=estimenergy --cov-report=xml
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.organization=${{ env.SONAR_PROJECT_ORGANIZATION }}
-Dsonar.projectKey=${{ env.SONAR_PROJECT_KEY }}
-Dsonar.python.coverage.reportPaths=coverage.xml
-Dsonar.sources=estimenergy,custom_components/estimenergy
-Dsonar.tests=tests/
-Dsonar.python.version=3.9

0 comments on commit 069c389

Please sign in to comment.