8181 - name : " Linting: ruff format"
8282 run : " ruff format --check --diff ."
8383
84+
8485 markdown-lint :
8586 if : needs.files-changed.outputs.documentation == 'true'
8687 needs : ["files-changed"]
@@ -131,11 +132,6 @@ jobs:
131132 needs : ["files-changed", "yaml-lint", "python-lint"]
132133 runs-on : ubuntu-latest
133134 timeout-minutes : 30
134- env :
135- INFRAHUB_DB_TYPE : neo4j
136- defaults :
137- run :
138- working-directory : python_sdk/
139135 steps :
140136 - name : " Check out repository code"
141137 uses : " actions/checkout@v4"
@@ -152,103 +148,7 @@ jobs:
152148 run : " poetry install --all-extras"
153149 - name : " Mypy Tests"
154150 run : " poetry run mypy --show-error-codes infrahub_sdk/"
155- - name : " Pylint Tests"
156- run : " poetry run pylint infrahub_sdk/"
151+ # - name: "Pylint Tests"
152+ # run: "poetry run pylint infrahub_sdk/"
157153 - name : " Unit Tests"
158- run : " poetry --directory python_sdk run coverage run --source=infrahub_sdk -m pytest python_sdk/tests/unit/"
159- working-directory : ./
160- - name : " Create coverage file"
161- run : " poetry --directory python_sdk run coverage xml"
162- working-directory : ./
163- - name : " Coveralls : Unit Tests"
164- uses : coverallsapp/github-action@v2
165- continue-on-error : true
166- env :
167- COVERALLS_SERVICE_NUMBER : ${{ github.sha }}
168- with :
169- flag-name : python-sdk-unit
170- parallel : true
171-
172-
173- # integration-tests:
174- # if: |
175- # always() && !cancelled() &&
176- # !contains(needs.*.result, 'failure') &&
177- # !contains(needs.*.result, 'cancelled')
178- # needs: ["python-sdk-unit-tests"]
179- # runs-on:
180- # group: huge-runners
181- # timeout-minutes: 30
182- # env:
183- # INFRAHUB_DB_TYPE: memgraph
184- # steps:
185- # - name: "Check out repository code"
186- # uses: "actions/checkout@v4"
187- # - name: "Install Invoke"
188- # run: "pip install toml invoke"
189-
190- # - name: "Set environment variables"
191- # run: echo INFRAHUB_BUILD_NAME=infrahub-${{ runner.name }} >> $GITHUB_ENV
192- # - name: "Set environment variables"
193- # run: echo INFRAHUB_IMAGE_VER=local-${{ runner.name }}-${{ github.sha }} >> $GITHUB_ENV
194- # - name: "Clear docker environment"
195- # run: docker compose -p $INFRAHUB_BUILD_NAME down -v --remove-orphans --rmi local
196-
197- # - name: "Build Test Image"
198- # run: "invoke dev.build"
199- # - name: "Pull External Docker Images"
200- # run: "invoke dev.pull"
201- # - name: "Integration Tests"
202- # run: "invoke sdk.test-integration"
203- # - name: "Coveralls : Integration Tests"
204- # uses: coverallsapp/github-action@v2
205- # continue-on-error: true
206- # env:
207- # COVERALLS_SERVICE_NUMBER: ${{ github.sha }}
208- # with:
209- # flag-name: python-sdk-integration
210- # parallel: true
211-
212-
213-
214- # ------------------------------------------ Coverall Report ------------------------------------------
215- # coverall-report:
216- # needs:
217- # - backend-tests-integration
218- # - backend-tests-unit
219- # - frontend-tests
220- # - python-sdk-integration-tests
221- # if: |
222- # always() && !cancelled()
223- # runs-on: ubuntu-latest
224- # timeout-minutes: 10
225- # steps:
226- # # NOTE: The ref value should be different when triggered by pull_request event.
227- # # See: https://github.com/lewagon/wait-on-check-action/issues/25.
228- # - name: Wait on tests (PR)
229- # uses: lewagon/wait-on-check-action@e106e5c43e8ca1edea6383a39a01c5ca495fd812
230- # if: github.event_name == 'pull_request'
231- # with:
232- # ref: ${{ github.event.pull_request.head.sha }}
233- # repo-token: ${{ secrets.GITHUB_TOKEN }}
234- # wait-interval: 10
235- # running-workflow-name: report
236- # allowed-conclusions: success,skipped,cancelled,failure
237-
238- # - name: Wait on tests (push)
239- # if: github.event_name != 'pull_request'
240- # uses: lewagon/wait-on-check-action@e106e5c43e8ca1edea6383a39a01c5ca495fd812
241- # with:
242- # ref: ${{ github.sha }}
243- # repo-token: ${{ secrets.GITHUB_TOKEN }}
244- # wait-interval: 10
245- # running-workflow-name: report
246- # allowed-conclusions: success,skipped,cancelled,failure
247-
248- # - uses: coverallsapp/github-action@v2
249- # continue-on-error: true
250- # env:
251- # COVERALLS_SERVICE_NUMBER: ${{ github.sha }}
252- # with:
253- # carryforward: "backend-unit,backend-integration,frontend-unit,python-sdk-unit,python-sdk-integration"
254- # parallel-finished: true
154+ run : " poetry run pytest tests/unit/"
0 commit comments