Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 28 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,37 @@ on:
jobs:

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- delta-lake-version: "3.0"
pyspark-version: "3.5"
- delta-lake-version: "2.4"
pyspark-version: "3.4"
- delta-lake-version: "2.3"
pyspark-version: "3.3"
- delta-lake-version: "2.2"
pyspark-version: "3.3"
- delta-lake-version: "2.1"
pyspark-version: "3.3"
- delta-lake-version: "2.0"
pyspark-version: "3.2"
- delta-lake-version: "2.4"
pyspark-version: "3.4"

runs-on: ubuntu-latest
name: Unit Test (Python 3.10, Delta ${{ matrix.delta-lake-version }}, PySpark ${{ matrix.pyspark-version }})
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: "3.10"

- name: Install Poetry
uses: snok/install-poetry@v1
Expand All @@ -31,12 +51,13 @@ jobs:
id: cache
with:
path: ~/.virtualenvs
key: poetry-${{ hashFiles('**/poetry.lock') }}
key: poetry-${{ hashFiles('**/poetry.lock') }}-${{ matrix.python-version}}-${{ matrix.delta-lake-version}}-${{ matrix.pyspark-version }}
restore-keys: |
poetry-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
poetry-${{ hashFiles('**/poetry.lock') }}-${{ matrix.python-version}}-${{ matrix.delta-lake-version}}-${{ matrix.pyspark-version }}

- name: Install specific delta-spark version
if: steps.cache.outputs.cache-hit != 'true'
run: poetry update delta-spark==${{ matrix.delta-lake-version }} pyspark==${{ matrix.pyspark-version }}

- name: Run mack tests with pytest
run: poetry run pytest