checkout #144
Workflow file for this run
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: Continuous Integration | |
# alwas run CI on new commits to any branch | |
on: push | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: 3.11 | |
- name: linting | |
if: matrix.task == 'linting' | |
shell: bash | |
run: | | |
pip install --upgrade pre-commit | |
pre-commit run --all-files | |
build: | |
name: build | |
needs: [lint] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build cluster image | |
run: | | |
make cluster-image | |
- name: Build notebook image | |
run: | | |
make notebook-image | |
all-tests-successful: | |
if: always() | |
runs-on: ubuntu-latest | |
needs: [build, lint] | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@v1.2.2 | |
with: | |
jobs: ${{ toJSON(needs) }} |