test(spanner): initialize _client_info with ClientInfo instance in mock client #1452
Workflow file for this run
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: import-profiler | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - preview | |
| # Trigger workflow on GitHub merge queue events | |
| merge_group: | |
| types: [checks_requested] | |
| permissions: | |
| contents: read | |
| jobs: | |
| import-profile: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 | |
| with: | |
| fetch-depth: 2 | |
| persist-credentials: false | |
| - name: Setup Python | |
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 | |
| with: | |
| python-version: "3.15" | |
| allow-prereleases: true | |
| cache: 'pip' | |
| - name: Run import profiler unit tests | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest pytest-cov setuptools | |
| pytest scripts/import_profiler/test_profiler.py --cov=profiler --cov-report=term-missing --cov-fail-under=100 | |
| - name: Run import profiler | |
| env: | |
| BUILD_TYPE: presubmit | |
| TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref }} | |
| TEST_TYPE: import_profile | |
| PY_VERSION: "3.15" | |
| # Workaround: Allows libcst to compile on Python 3.15+ while PyO3 catches up | |
| PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1" | |
| run: | | |
| ci/run_conditional_tests.sh |