[pre-commit.ci] pre-commit autoupdate (#101) #256
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 tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
# only cancel in-progress jobs or runs for the current workflow - matches against branch & tags | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo ⚡️ | |
uses: actions/checkout@v4 | |
- name: Set Up Python 🐍 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Install Dev Dependencies 📦 | |
run: | | |
pip install --upgrade pip | |
pip install --upgrade -r requirements-test.txt | |
- name: Run tests ✅ | |
run: | | |
cookiecutter --no-input --config-file configs/${{ matrix.config }} --output-dir /tmp . | |
cd /tmp/my-jupyter-stack | |
pip install --upgrade -r requirements-dev.txt | |
docker build --rm --force-rm --tag my-project/my-jupyter-stack image/ | |
pytest tests/ | |
strategy: | |
matrix: | |
# Skipping docker-stacks-foundation, because JupyterLab server is not installed there | |
config: | |
[ | |
base.yaml, | |
minimal.yaml, | |
scipy.yaml, | |
r.yaml, | |
julia.yaml, | |
tensorflow.yaml, | |
datascience.yaml, | |
pyspark.yaml, | |
all-spark.yaml, | |
] |