Skip to content

Commit e1410d5

Browse files
committed
SNOW-2306184: config refactor - gh workflows
1 parent 1b2dbba commit e1410d5

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/test.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,29 @@ jobs:
4343
- name: Test with hatch
4444
run: hatch run test-cov
4545
- uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24
46+
47+
tests-ng:
48+
needs: define-matrix
49+
strategy:
50+
fail-fast: true
51+
matrix:
52+
os: ${{ fromJSON(needs.define-matrix.outputs.os) }}
53+
python-version: ${{ fromJSON(needs.define-matrix.outputs.python) }}
54+
runs-on: ${{ matrix.os }}
55+
env:
56+
SNOWFLAKE_CLI_CONFIG_V2_ENABLED: 1
57+
steps:
58+
- uses: actions/checkout@v4
59+
with:
60+
persist-credentials: false
61+
- name: Set up Python ${{ matrix.python-version }}
62+
uses: actions/setup-python@v5
63+
with:
64+
python-version: ${{ matrix.python-version }}
65+
- name: Install hatch
66+
run: |
67+
pip install -U click==8.2.1 hatch
68+
hatch env create default
69+
- name: Test with hatch
70+
run: hatch run test-cov
71+
- uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24

.github/workflows/test_integration.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,26 @@ jobs:
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+
4969
# Repo owner has commented /ok-to-test on a (fork-based) pull request
5070
integration-fork:
5171
needs: define-matrix

0 commit comments

Comments
 (0)