|
76 | 76 | - name: "Check out repository code" |
77 | 77 | uses: "actions/checkout@v4" |
78 | 78 | - name: "Setup environment" |
79 | | - run: "pip install ruff==0.8.6" |
| 79 | + run: "pip install ruff==0.11.0" |
80 | 80 | - name: "Linting: ruff check" |
81 | 81 | run: "ruff check ." |
82 | 82 | - name: "Linting: ruff format" |
@@ -212,6 +212,7 @@ jobs: |
212 | 212 | - "3.10" |
213 | 213 | - "3.11" |
214 | 214 | - "3.12" |
| 215 | + - "3.13" |
215 | 216 | if: | |
216 | 217 | always() && !cancelled() && |
217 | 218 | !contains(needs.*.result, 'failure') && |
@@ -299,77 +300,79 @@ jobs: |
299 | 300 | env: |
300 | 301 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
301 | 302 |
|
302 | | - integration-tests-local-infrahub: |
303 | | - if: | |
304 | | - always() && !cancelled() && |
305 | | - !contains(needs.*.result, 'failure') && |
306 | | - !contains(needs.*.result, 'cancelled') && |
307 | | - needs.files-changed.outputs.python == 'true' && |
308 | | - (github.base_ref == 'stable' || github.base_ref == 'develop') |
309 | | - needs: ["files-changed", "yaml-lint", "python-lint"] |
310 | | - runs-on: |
311 | | - group: "huge-runners" |
312 | | - timeout-minutes: 30 |
313 | | - steps: |
314 | | - - name: "Check out repository code" |
315 | | - uses: "actions/checkout@v4" |
| 303 | + # NOTE: Disabling this test for now because it's expected that we can't start the latest version of infrahub |
| 304 | + # with the current shipping version of infrahub-testcontainers |
| 305 | + # integration-tests-local-infrahub: |
| 306 | + # if: | |
| 307 | + # always() && !cancelled() && |
| 308 | + # !contains(needs.*.result, 'failure') && |
| 309 | + # !contains(needs.*.result, 'cancelled') && |
| 310 | + # needs.files-changed.outputs.python == 'true' && |
| 311 | + # (github.base_ref == 'stable' || github.base_ref == 'develop') |
| 312 | + # needs: ["files-changed", "yaml-lint", "python-lint"] |
| 313 | + # runs-on: |
| 314 | + # group: "huge-runners" |
| 315 | + # timeout-minutes: 30 |
| 316 | + # steps: |
| 317 | + # - name: "Check out repository code" |
| 318 | + # uses: "actions/checkout@v4" |
316 | 319 |
|
317 | | - - name: "Extract target branch name" |
318 | | - id: extract_branch |
319 | | - run: echo "TARGET_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV |
| 320 | + # - name: "Extract target branch name" |
| 321 | + # id: extract_branch |
| 322 | + # run: echo "TARGET_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV |
320 | 323 |
|
321 | | - - name: "Checkout infrahub repository" |
322 | | - uses: "actions/checkout@v4" |
323 | | - with: |
324 | | - repository: "opsmill/infrahub" |
325 | | - path: "infrahub-server" |
326 | | - ref: ${{ github.base_ref }} |
327 | | - submodules: true |
| 324 | + # - name: "Checkout infrahub repository" |
| 325 | + # uses: "actions/checkout@v4" |
| 326 | + # with: |
| 327 | + # repository: "opsmill/infrahub" |
| 328 | + # path: "infrahub-server" |
| 329 | + # ref: ${{ github.base_ref }} |
| 330 | + # submodules: true |
328 | 331 |
|
329 | | - - name: Set up Python |
330 | | - uses: actions/setup-python@v5 |
331 | | - with: |
332 | | - python-version: "3.12" |
| 332 | + # - name: Set up Python |
| 333 | + # uses: actions/setup-python@v5 |
| 334 | + # with: |
| 335 | + # python-version: "3.12" |
333 | 336 |
|
334 | | - - name: "Setup git credentials prior dev.build" |
335 | | - run: | |
336 | | - cd infrahub-server |
337 | | - git config --global user.name 'Infrahub' |
338 | | - git config --global user.email '[email protected]' |
339 | | - git config --global --add safe.directory '*' |
340 | | - git config --global credential.usehttppath true |
341 | | - git config --global credential.helper /usr/local/bin/infrahub-git-credential |
| 337 | + # - name: "Setup git credentials prior dev.build" |
| 338 | + # run: | |
| 339 | + # cd infrahub-server |
| 340 | + # git config --global user.name 'Infrahub' |
| 341 | + # git config --global user.email '[email protected]' |
| 342 | + # git config --global --add safe.directory '*' |
| 343 | + # git config --global credential.usehttppath true |
| 344 | + # git config --global credential.helper /usr/local/bin/infrahub-git-credential |
342 | 345 |
|
343 | | - - name: "Set environment variables prior dev.build" |
344 | | - run: | |
345 | | - echo "INFRAHUB_BUILD_NAME=infrahub-${{ runner.name }}" >> $GITHUB_ENV |
346 | | - RUNNER_NAME=$(echo "${{ runner.name }}" | grep -o 'ghrunner[0-9]\+' | sed 's/ghrunner\([0-9]\+\)/ghrunner_\1/') |
347 | | - echo "PYTEST_DEBUG_TEMPROOT=/var/lib/github/${RUNNER_NAME}/_temp" >> $GITHUB_ENV |
348 | | - echo "INFRAHUB_IMAGE_VER=local-${{ runner.name }}-${{ github.sha }}" >> $GITHUB_ENV |
349 | | - echo "INFRAHUB_TESTING_IMAGE_VER=local-${{ runner.name }}-${{ github.sha }}" >> $GITHUB_ENV |
350 | | - echo "INFRAHUB_TESTING_DOCKER_IMAGE=opsmill/infrahub" >> $GITHUB_ENV |
| 346 | + # - name: "Set environment variables prior dev.build" |
| 347 | + # run: | |
| 348 | + # echo "INFRAHUB_BUILD_NAME=infrahub-${{ runner.name }}" >> $GITHUB_ENV |
| 349 | + # RUNNER_NAME=$(echo "${{ runner.name }}" | grep -o 'ghrunner[0-9]\+' | sed 's/ghrunner\([0-9]\+\)/ghrunner_\1/') |
| 350 | + # echo "PYTEST_DEBUG_TEMPROOT=/var/lib/github/${RUNNER_NAME}/_temp" >> $GITHUB_ENV |
| 351 | + # echo "INFRAHUB_IMAGE_VER=local-${{ runner.name }}-${{ github.sha }}" >> $GITHUB_ENV |
| 352 | + # echo "INFRAHUB_TESTING_IMAGE_VER=local-${{ runner.name }}-${{ github.sha }}" >> $GITHUB_ENV |
| 353 | + # echo "INFRAHUB_TESTING_DOCKER_IMAGE=opsmill/infrahub" >> $GITHUB_ENV |
351 | 354 |
|
352 | | - - name: "Build container" |
353 | | - run: | |
354 | | - cd infrahub-server |
355 | | - inv dev.build |
| 355 | + # - name: "Build container" |
| 356 | + # run: | |
| 357 | + # cd infrahub-server |
| 358 | + # inv dev.build |
356 | 359 |
|
357 | | - - name: "Setup environment" |
358 | | - run: | |
359 | | - pipx install poetry==1.8.5 |
360 | | - poetry config virtualenvs.create true --local |
361 | | - pip install invoke toml codecov |
| 360 | + # - name: "Setup environment" |
| 361 | + # run: | |
| 362 | + # pipx install poetry==1.8.5 |
| 363 | + # poetry config virtualenvs.create true --local |
| 364 | + # pip install invoke toml codecov |
362 | 365 |
|
363 | | - - name: "Install Package" |
364 | | - run: "poetry install --all-extras" |
| 366 | + # - name: "Install Package" |
| 367 | + # run: "poetry install --all-extras" |
365 | 368 |
|
366 | | - - name: "Integration Tests" |
367 | | - run: | |
368 | | - echo "Running tests for version: $INFRAHUB_TESTING_IMAGE_VER" |
369 | | - poetry run pytest --cov infrahub_sdk tests/integration/ |
| 369 | + # - name: "Integration Tests" |
| 370 | + # run: | |
| 371 | + # echo "Running tests for version: $INFRAHUB_TESTING_IMAGE_VER" |
| 372 | + # poetry run pytest --cov infrahub_sdk tests/integration/ |
370 | 373 |
|
371 | | - - name: "Upload coverage to Codecov" |
372 | | - run: | |
373 | | - codecov --flags integration-tests |
374 | | - env: |
375 | | - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 374 | + # - name: "Upload coverage to Codecov" |
| 375 | + # run: | |
| 376 | + # codecov --flags integration-tests |
| 377 | + # env: |
| 378 | + # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
0 commit comments