Skip to content

Commit 7f6428f

Browse files
committed
Test with coverage in analysis
1 parent 0bb15a5 commit 7f6428f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,22 @@ jobs:
107107
analysis:
108108
name: "NEXT Analysis"
109109
runs-on: github-ubuntu-latest-s
110-
needs: [coverage]
111110
permissions:
112111
id-token: write
113112
contents: write
114113
steps:
115114
- name: Checkout repository
116115
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
117-
- name: Download coverage artifacts
118-
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
116+
- name: Configure poetry
117+
uses: SonarSource/ci-github-actions/build-poetry@v1
119118
with:
120-
name: coverage-reports
119+
sonar-platform: none
120+
artifactory-reader-role: private-reader
121+
artifactory-deployer-role: qa-deployer
122+
- run: |
123+
poetry install
124+
poetry run pytest --cov-report=xml:coverage.xml --cov-config=pyproject.toml --cov=src --cov-branch tests
125+
poetry run mypy src/ > mypy-report.txt || true
121126
- name: Install mise and tools
122127
uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 #v3.3.1
123128
- name: Analysis the project on next

0 commit comments

Comments
 (0)