chore(deps-dev): bump wrapt from 2.0.0 to 2.0.1 in /it/python (#7087) #10638
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: integration-tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| merge_group: | |
| concurrency: | |
| # Only run once for latest commit per ref and cancel other (previous) runs. | |
| group: ci-integration-tests-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 9.x | |
| - name: Restore dependencies | |
| run: dotnet restore kiota.sln | |
| - name: Build | |
| run: dotnet publish ./src/kiota/kiota.csproj -c Release -p:PublishSingleFile=true -p:PublishReadyToRun=true -o ./publish -f net9.0 | |
| # -p:PublishTrimmed=true -p:PublishAot=true should be enabled to make test run faster, but there are still limitations | |
| - uses: actions/upload-artifact@v5 | |
| with: | |
| name: generator | |
| path: publish | |
| download-openapi-specs: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| description: | |
| - "oas::petstore" | |
| - "apisguru::twitter.com:current" | |
| - "apisguru::notion.com" | |
| - "apisguru::stripe.com" | |
| - "https://raw.githubusercontent.com/googlemaps/openapi-specification/main/dist/google-maps-platform-openapi3.yml" | |
| - "apisguru::meraki.com" | |
| - "https://developers.pipedrive.com/docs/api/v1/openapi.yaml" | |
| - "apisguru::twilio.com:api" | |
| - "apisguru::docusign.net" | |
| - "apisguru::github.com:api.github.com" | |
| - "apisguru::apis.guru" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/download-artifact@v6 | |
| with: | |
| name: generator | |
| path: publish | |
| - run: chmod a+x ./publish/kiota | |
| - name: Download OpenAPI specs | |
| run: ./it/download-openapi-specs.ps1 -descriptionUrl ${{ matrix.description }} | |
| shell: pwsh | |
| - id: replace_url | |
| run: ./it/get-description-artifact-key.ps1 -descriptionUrl ${{ matrix.description }} | |
| shell: pwsh | |
| - uses: actions/upload-artifact@v5 | |
| with: | |
| name: description-${{ steps.replace_url.outputs.ARTKEY }} | |
| path: it/openapi.yaml | |
| integration: | |
| runs-on: ubuntu-latest | |
| needs: download-openapi-specs | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: | |
| - java | |
| - csharp | |
| - go | |
| - typescript | |
| - ruby | |
| - php | |
| - python | |
| - dart | |
| description: | |
| - "./tests/Kiota.Builder.IntegrationTests/InheritingErrors.yaml" | |
| - "./tests/Kiota.Builder.IntegrationTests/EnumHandling.yaml" | |
| - "./tests/Kiota.Builder.IntegrationTests/NoUnderscoresInModel.yaml" | |
| - "./tests/Kiota.Builder.IntegrationTests/ToDoApi.yaml" | |
| - "./tests/Kiota.Builder.IntegrationTests/GeneratesUritemplateHints.yaml" | |
| - "./tests/Kiota.Builder.IntegrationTests/DiscriminatorSample.yaml" | |
| - "oas::petstore" | |
| - "apisguru::twitter.com:current" | |
| - "apisguru::notion.com" | |
| - "apisguru::stripe.com" | |
| - "https://raw.githubusercontent.com/googlemaps/openapi-specification/main/dist/google-maps-platform-openapi3.yml" | |
| - "apisguru::meraki.com" | |
| - "https://developers.pipedrive.com/docs/api/v1/openapi.yaml" | |
| - "apisguru::twilio.com:api" | |
| - "apisguru::docusign.net" | |
| - "apisguru::github.com:api.github.com" | |
| - "apisguru::apis.guru" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - id: replace_url | |
| run: ./it/get-description-artifact-key.ps1 -descriptionUrl ${{ matrix.description }} | |
| shell: pwsh | |
| - uses: actions/download-artifact@v6 | |
| if: startsWith(matrix.description, './') != true | |
| with: | |
| name: description-${{ steps.replace_url.outputs.ARTKEY }} | |
| path: description | |
| - uses: actions/download-artifact@v6 | |
| with: | |
| name: generator | |
| path: publish | |
| - run: chmod a+x ./publish/kiota | |
| # Common dependency needed to run MockServer | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: "17" | |
| distribution: "temurin" | |
| cache: "maven" | |
| - name: Setup .NET | |
| if: matrix.language == 'csharp' | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 9.x | |
| - name: Setup Go | |
| if: matrix.language == 'go' | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "^1.24" | |
| - name: Setup Typescript | |
| if: matrix.language == 'typescript' | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "20" | |
| - name: Setup Ruby | |
| if: matrix.language == 'ruby' | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.2" | |
| bundler-cache: true | |
| - name: Setup PHP | |
| if: matrix.language == 'php' | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.2" | |
| coverage: xdebug | |
| - name: Setup Python | |
| if: matrix.language == 'python' | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Setup Dart | |
| if: matrix.language == 'dart' | |
| uses: dart-lang/setup-dart@v1 | |
| with: | |
| sdk: "stable" | |
| - name: Check if test is suppressed | |
| id: check-suppressed | |
| run: | | |
| $isSuppressed = . ./it/get-is-suppressed.ps1 -descriptionUrl ${{ matrix.description }} -language ${{ matrix.language }} | |
| Write-Output "IS_SUPPRESSED=$($isSuppressed.ToString().ToLowerInvariant())" >> $Env:GITHUB_OUTPUT | |
| shell: pwsh | |
| - name: Generate Code | |
| shell: pwsh | |
| run: ./it/generate-code.ps1 -descriptionUrl "${{ steps.replace_url.outputs.DESCRIPTION_PATH }}" -descriptionKey ${{ matrix.description }} -language "${{ matrix.language }}" | |
| continue-on-error: ${{ steps.check-suppressed.outputs.IS_SUPPRESSED == 'true' }} | |
| - name: Execute the IT test | |
| shell: pwsh | |
| run: ./it/exec-cmd.ps1 -descriptionUrl ${{ matrix.description }} -language ${{ matrix.language }} | |
| continue-on-error: ${{ steps.check-suppressed.outputs.IS_SUPPRESSED == 'true' }} | |
| - name: Cleanup the IT folder | |
| shell: pwsh | |
| run: ./it/do-clean.ps1 -language ${{ matrix.language }} | |
| if: always() | |
| - uses: actions/upload-artifact@v5 | |
| if: always() | |
| with: | |
| name: generation-results-${{ matrix.language }}-${{ steps.replace_url.outputs.ARTKEY }} | |
| path: it/${{ matrix.language }}.zip | |
| cleanup: | |
| runs-on: ubuntu-latest | |
| needs: integration | |
| steps: | |
| - uses: jimschubert/delete-artifacts-action@v1 | |
| with: | |
| artifact_name: "generator" | |
| min_bytes: "0" | |
| # Aggregates result of the integration tests for use in branch policy | |
| check-integration-tests: | |
| runs-on: ubuntu-latest | |
| needs: integration | |
| if: always() | |
| steps: | |
| - name: All build matrix options are successful | |
| if: ${{ !(contains(needs.*.result, 'failure')) }} | |
| run: exit 0 | |
| - name: One or more build matrix options failed | |
| if: ${{ contains(needs.*.result, 'failure') }} | |
| run: exit 1 |