diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0f643e18..27a3ecce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,6 +25,10 @@ jobs: test: runs-on: ubuntu-22.04 timeout-minutes: 10 + strategy: + matrix: + example: + - basic-example steps: - uses: actions/checkout@v3 @@ -40,10 +44,14 @@ jobs: run: pip install pytest - name: Add a test admin token - run: cat ci/config_token.py >> jupyterhub_config.py + run: cat ci/config_token.py >> ${{ matrix.example }}/jupyterhub_config.py - name: Run JupyterHub - run: docker-compose up -d + run: | + cd ${{ matrix.example }} + docker-compose up -d - name: Test - run: pytest -vs + run: | + cd ${{ matrix.example }} + pytest -vs diff --git a/Dockerfile.jupyterhub b/basic-example/Dockerfile.jupyterhub similarity index 100% rename from Dockerfile.jupyterhub rename to basic-example/Dockerfile.jupyterhub diff --git a/docker-compose.yml b/basic-example/docker-compose.yml similarity index 100% rename from docker-compose.yml rename to basic-example/docker-compose.yml diff --git a/jupyterhub_config.py b/basic-example/jupyterhub_config.py similarity index 100% rename from jupyterhub_config.py rename to basic-example/jupyterhub_config.py diff --git a/tests/test_spawn.py b/basic-example/tests/test_spawn.py similarity index 100% rename from tests/test_spawn.py rename to basic-example/tests/test_spawn.py