Formatted everything with black #162
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
# =============================== | |
# Continuous Integration Pipeline | |
# =============================== | |
name: Continuous Integration | |
on: | |
push: | |
branches: [ 'main', 'develop'] | |
jobs: | |
# -------------------------------- | |
# Lint the Codebase | |
# -------------------------------- | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Format | |
uses: psf/black@stable | |
# -------------------------------- | |
# Test : Unit tests | |
# -------------------------------- | |
test: | |
needs: [lint] | |
name: Test - Run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name : Test | |
uses: devcontainers/[email protected] | |
with: | |
push: never | |
runCmd: | | |
make get-informations | |
make install-dependencies-test | |
make test | |
# -------------------------------- | |
# Test : Run notebooks | |
# -------------------------------- | |
run_notebooks: | |
needs: [test] | |
name: Test - Run notebooks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name : Run notebooks | |
uses: devcontainers/[email protected] | |
with: | |
push: never | |
runCmd: | | |
make get-informations | |
make install-dependencies-test | |
make run-notebooks | |
# -------------------------------- | |
# Build : Build the Package | |
# -------------------------------- | |
build: | |
needs: [run_notebooks] | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install dependency manager | |
uses: snok/install-poetry@v1 | |
- name: Install dependencies | |
run: make install-dependencies | |
- name: Build package | |
run: make build |