Run Unit Tests #1136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Unit Tests | |
on: | |
push: {} | |
pull_request: {} | |
schedule: | |
# Run daily | |
- cron: "6 4 * * *" | |
workflow_call: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install system dependencies | |
run: | | |
sudo apt-get install -y libkrb5-dev | |
- name: Install package dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest mock | |
pip install -r hdijupyterutils/requirements.txt -e hdijupyterutils | |
pip install -r autovizwidget/requirements.txt -e autovizwidget | |
pip install -r sparkmagic/requirements.txt -e sparkmagic | |
- name: Run hdijupyterutils tests | |
run: | | |
pytest hdijupyterutils | |
- name: Run autovizwidget tests | |
run: | | |
pytest autovizwidget | |
- name: Run sparkmagic tests | |
run: | | |
mkdir ~/.sparkmagic | |
pytest sparkmagic |