Skip to content

Merge pull request #69 from ontime-re/63-darts-models-wrapper #165

Merge pull request #69 from ontime-re/63-darts-models-wrapper

Merge pull request #69 from ontime-re/63-darts-models-wrapper #165

Workflow file for this run

# ===============================
# 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