Skip to content

skip unnecessary CI build step #9

skip unnecessary CI build step

skip unnecessary CI build step #9

name: Test Installation
on:
push:
branches:
- master
- main
pull_request:
branches:
- '**'
workflow_dispatch:
concurrency:
# older builds for the same pull request number or branch should be cancelled
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
jobs:
test-installation:
name: Test Boto Dependency
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Test default installation (should include boto)
shell: bash
run: |
python -m venv test_default_env
source test_default_env/bin/activate
python -m pip install .
pip freeze | grep boto || exit 1 # boto3/botocore should be installed by default
# Deactivate and clean up
deactivate
rm -rf test_default_env
- name: Test installation with SNOWFLAKE_NO_BOTO=1 (should exclude boto)
shell: bash
run: |
python -m venv test_no_boto_env
source test_no_boto_env/bin/activate
SNOWFLAKE_NO_BOTO=1 python -m pip install .
# Check that boto3 and botocore are NOT installed
pip freeze | grep boto && exit 1 # boto3 and botocore should be not installed
# Deactivate and clean up
deactivate
rm -rf test_no_boto_env