File tree Expand file tree Collapse file tree 2 files changed +28
-21
lines changed Expand file tree Collapse file tree 2 files changed +28
-21
lines changed Original file line number Diff line number Diff line change 4646 hatch-run : integration:test
4747 secrets : inherit
4848
49- integration-trusted-ng :
50- needs : define-matrix
51- strategy :
52- fail-fast : false
53- matrix :
54- os : ${{ fromJSON(needs.define-matrix.outputs.os) }}
55- python-version : ${{ fromJSON(needs.define-matrix.outputs.python) }}
56- if : |
57- (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
58- (github.event_name == 'push' && github.ref == 'refs/heads/main')
59- uses : ./.github/workflows/test_trusted.yaml
60- with :
61- runs-on : ${{ matrix.os }}
62- python-version : ${{ matrix.python-version }}
63- python-env : integration
64- hatch-run : integration:test
65- secrets : inherit
66- env :
67- SNOWFLAKE_CLI_CONFIG_V2_ENABLED : 1
68-
69- # Repo owner has commented /ok-to-test on a (fork-based) pull request
7049 integration-fork :
7150 needs : define-matrix
7251 strategy :
Original file line number Diff line number Diff line change 4646 SNOWFLAKE_CONNECTIONS_INTEGRATION_DATABASE : ${{ secrets.SNOWFLAKE_DATABASE }}
4747 SNOWFLAKE_CONNECTIONS_INTEGRATION_PRIVATE_KEY_RAW : ${{ secrets.SNOWFLAKE_PRIVATE_KEY_RAW }}
4848 run : python -m hatch run ${{ inputs.hatch-run }}
49+
50+ tests-trusted-ng :
51+ runs-on : ${{ inputs.runs-on }}
52+ env :
53+ SNOWFLAKE_CLI_CONFIG_V2_ENABLED : 1
54+ steps :
55+ - uses : actions/checkout@v4
56+ with :
57+ persist-credentials : false
58+ - name : Set up Python
59+ uses : actions/setup-python@v5
60+ with :
61+ python-version : ${{ inputs.python-version }}
62+ - name : Install dependencies
63+ run : |
64+ python -m pip install --upgrade pip click==8.2.1 hatch
65+ python -m hatch env create ${{ inputs.python-env }}
66+ - name : Run integration tests
67+ env :
68+ GH_TOKEN : ${{ secrets.SNOWFLAKE_GITHUB_TOKEN }}
69+ TERM : unknown
70+ SNOWFLAKE_CONNECTIONS_INTEGRATION_AUTHENTICATOR : SNOWFLAKE_JWT
71+ SNOWFLAKE_CONNECTIONS_INTEGRATION_HOST : ${{ secrets.SNOWFLAKE_HOST }}
72+ SNOWFLAKE_CONNECTIONS_INTEGRATION_USER : ${{ secrets.SNOWFLAKE_USER }}
73+ SNOWFLAKE_CONNECTIONS_INTEGRATION_ACCOUNT : ${{ secrets.SNOWFLAKE_ACCOUNT }}
74+ SNOWFLAKE_CONNECTIONS_INTEGRATION_DATABASE : ${{ secrets.SNOWFLAKE_DATABASE }}
75+ SNOWFLAKE_CONNECTIONS_INTEGRATION_PRIVATE_KEY_RAW : ${{ secrets.SNOWFLAKE_PRIVATE_KEY_RAW }}
76+ run : python -m hatch run ${{ inputs.hatch-run }}
You can’t perform that action at this time.
0 commit comments