name: Docker Tests on: schedule: - cron: '0 0 * * *' push: branches: [main] pull_request: branches: [main] permissions: contents: read jobs: docker: name: Docker Dev Container if: ${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[docker]')) }} runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6 with: persist-credentials: false - name: Build the image run: | bash ./docker/start.sh build docker image ls 2>&1 | grep -ie "jupyterlab_dev" - - name: Start the dev container run: | bash ./docker/start.sh dev-detach - name: Wait for JupyterLab run: npx wait-on@7.2.0 http-get://localhost:8888/lab -t 360000