Skip to content

Commit

Permalink
Create install.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
gsheni committed May 15, 2024
1 parent 32b373a commit 47692b4
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Install Tests
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- main
jobs:
install:
name: ${{ matrix.os }} - ${{ matrix.python_version }} install
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest]
python_version: ["3.8", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- name: Set up python ${{ matrix.python_version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- uses: actions/checkout@v4
- name: Build package
run: |
make package
- name: Install package
run: |
python -m pip install "unpacked_sdist/."
- name: Test by importing packages
run: |
python -c "import sdv_connectors"
- name: Check package conflicts
run: |
python -m pip check
- name: Install add ons
run: |
python -m pip install "unpacked_sdist/[bigquery]"
- name: Test by importing packages
run: |
python -c "import google.cloud.bigquery"
python -c "import pyarrow"

0 comments on commit 47692b4

Please sign in to comment.