Skip to content

Bump actions/checkout from 4 to 5 #303

Bump actions/checkout from 4 to 5

Bump actions/checkout from 4 to 5 #303

Workflow file for this run

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-24.04
timeout-minutes: 5
steps:
- name: Checkout Repo ⚡️
uses: actions/checkout@v5
- name: Set Up Python 🐍
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dev Dependencies 📦
run: |
pip install --upgrade pip
pip install --upgrade -r requirements-test.txt
- name: Create a project using cookiecutter 🍪
run: cookiecutter --no-input --config-file configs/${{ matrix.config }} --output-dir /tmp .
- name: Build docker image 🛠
working-directory: /tmp/my-jupyter-stack
run: docker build --rm --force-rm --tag my-project/my-jupyter-stack image/
- name: Install Dev Dependencies to run tests 📦
working-directory: /tmp/my-jupyter-stack
run: pip install --upgrade -r requirements-dev.txt
- name: Run tests ✅
working-directory: /tmp/my-jupyter-stack
run: pytest tests/
env:
TEST_IMAGE: my-project/my-jupyter-stack
# Skipping jupyter/docker-stacks-foundation image, because Jupyter Server is not installed there
if: ${{ matrix.config != 'foundation.yaml' }}
strategy:
matrix:
config:
[
foundation.yaml,
base.yaml,
minimal.yaml,
scipy.yaml,
r.yaml,
julia.yaml,
tensorflow.yaml,
tensorflow-cuda.yaml,
pytorch.yaml,
pytorch-cuda11.yaml,
pytorch-cuda12.yaml,
datascience.yaml,
pyspark.yaml,
all-spark.yaml,
]