Skip to content

Extract matrix

Extract matrix #1

Workflow file for this run

name: E2E testing
on:
pull_request:
branches:
- "*"
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
setup-matrix:
uses: snowflakedb/snowflake-cli/.github/workflows/matrix.yaml

Check failure on line 19 in .github/workflows/test_e2e.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/test_e2e.yaml

Invalid workflow file

invalid value workflow reference: no version specified
tests:
needs: setup-matrix
strategy:
fail-fast: true
matrix:
os: ${{ fromJSON(needs.setup-matrix.outputs.os) }}
python-version: ${{ fromJSON(needs.setup-matrix.outputs.python) }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip hatch
python -m hatch env create e2e
- name: Run end to end tests
env:
TERM: unknown
SNOWFLAKE_CONNECTIONS_INTEGRATION_HOST: ${{ secrets.SNOWFLAKE_HOST }}
SNOWFLAKE_CONNECTIONS_INTEGRATION_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_CONNECTIONS_INTEGRATION_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_CONNECTIONS_INTEGRATION_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
run: python -m hatch run e2e:test