Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

20 changes: 0 additions & 20 deletions .eslintrc.json

This file was deleted.

16 changes: 0 additions & 16 deletions .github/actions/build/action.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/actions/execute-notebooks/action.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/actions/install-node-packages/action.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/actions/install-python-modules/action.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/build-test.yml

This file was deleted.

126 changes: 126 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v5

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm

- name: Install Packages
run: npm ci
shell: bash

- name: Build
run: npm run build
shell: bash

prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v5

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm

- name: Install Packages
run: npm ci
shell: bash

- name: Format
run: npx prettier --check .
shell: bash

black:
name: Black
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v5

- name: Setup Poetry
run: pipx install poetry==2.0.0
shell: bash

- name: Install Poetry Packages
run: poetry install --no-root
shell: bash

- name: Run Black
run: poetry run black --check .

notebooks:
name: Notebooks
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v5

- name: Setup Poetry
run: pipx install poetry==2.0.0
shell: bash

- name: Install Poetry Packages
run: poetry install --no-root
shell: bash

- name: Execute Notebooks
run: |
poetry run jupyter nbconvert --inplace --to notebook --execute --allow-errors static/**/*.ipynb
poetry run databooks meta --rm-outs --rm-exec --yes .
git diff --exit-code
shell: bash

isort:
name: isort
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v5

- name: Setup Poetry
run: pipx install poetry==2.0.0
shell: bash

- name: Install Poetry Packages
run: poetry install --no-root
shell: bash

- name: Run nqQA isort
run: poetry run nbqa isort --nbqa-diff .

pyupgrade:
name: pyupgrade
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v5

- name: Setup Poetry
run: pipx install poetry==2.0.0
shell: bash

- name: Install Poetry Packages
run: poetry install --no-root
shell: bash

- name: Run nqQA pyupgrade
run: poetry run nbqa pyupgrade --nbqa-diff .
27 changes: 17 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Build and Deploy
name: Deploy

on:
push:
branches: [main, master]
branches:
- main

permissions:
contents: read
Expand All @@ -19,20 +20,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Execute Notebooks
uses: ./.github/actions/execute-notebooks
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm

- name: Install Packages
run: npm ci
shell: bash

- name: Build
uses: ./.github/actions/build
with:
base-url: /
run: npm run build
shell: bash

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v4
with:
path: build

Expand All @@ -45,4 +52,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
69 changes: 0 additions & 69 deletions .github/workflows/formatter.yml

This file was deleted.

Loading