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
4 changes: 2 additions & 2 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
runs:
using: "Composite"
steps:
- name: Install Node Mudules
uses: ./.github/actions/install_node_modules
- name: Install npm Modules
uses: ./.github/actions/install-npm-modules

- name: Build
run: npm run build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ runs:
using: "Composite"
steps:
- name: Install Python Modules
uses: ./.github/actions/install_python_modules
uses: ./.github/actions/install-python-modules

- name: Execute Notebooks
run: npm run execute_notebooks
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Deploy

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

permissions:
contents: write
Expand All @@ -18,12 +18,12 @@ jobs:
uses: actions/checkout@v3

- name: Execute Notebooks
uses: ./.github/actions/execute_notebooks
uses: ./.github/actions/execute-notebooks

- name: Build
uses: ./.github/actions/build

- name: Deploy 🚀
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
clean-exclude: pr-preview/
Expand Down
98 changes: 17 additions & 81 deletions .github/workflows/formatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,114 +22,50 @@ jobs:
python-files:
- '**.py,**.pyi,**.ipynb'

databooks:
name: Databooks
formatter:
name: Formatter
needs: changes
if: needs.changes.outputs.python-files == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Python Modules
uses: ./.github/actions/install_python_modules

- name: Run Databooks
run: poetry run databooks meta --no-rm-outs --rm-exec --yes .

prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install npm Modules
uses: ./.github/actions/install-npm-modules

- name: Install Node Mudules
uses: ./.github/actions/install_node_modules
- name: Install Python Modules
uses: ./.github/actions/install-python-modules

- name: Run Prettier
run: npx prettier --write .

black:
name: Black
needs: databooks
if: needs.changes.outputs.python-files == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Python Modules
uses: ./.github/actions/install_python_modules

- name: Run Black
run: poetry run black .

nbqa-isort:
name: nqQA-isort
needs: black
if: needs.changes.outputs.python-files == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Python Modules
uses: ./.github/actions/install_python_modules
- name: Run Databooks
if: needs.changes.outputs.python-files == 'true'
run: poetry run databooks meta --rm-outs --rm-exec --yes .

- name: Run nqQA isort
if: needs.changes.outputs.python-files == 'true'
run: poetry run nbqa isort .

nbqa-pyupgrade:
name: nqQA-pyupgrade
needs: black
if: needs.changes.outputs.python-files == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Python Modules
uses: ./.github/actions/install_python_modules

- name: Run nqQA pyupgrade
if: needs.changes.outputs.python-files == 'true'
run: poetry run nbqa pyupgrade .

pre-commit:
name: pre-commit
needs: black
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: latest

- name: Install Python Modules
uses: ./.github/actions/install_python_modules
- name: Run Black
if: needs.changes.outputs.python-files == 'true'
run: poetry run black .

- name: Cache pre-commit
uses: actions/cache@v3
id: pre-commit_cache_id
id: precommit_cache_id
with:
path: ~/.cache/pre-commit
key: pre-commit-cache-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('.pre-commit-config.yaml') }}

- name: Install pre-commit environment
if: steps.pre-commit_cache_id.outputs.cache-hit != 'true'
run: pre-commit run --all-files

- name: Run pre-commit
run: pre-commit run --all-files
if: steps.precommit_cache_id.outputs.cache-hit != 'true'
run: poetry run pre-commit run --all-files

commit:
name: Commit
needs: prettier
runs-on: ubuntu-latest
steps:
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
with:
ref: ${{ github.head_ref }}

- name: Install Node Mudules
uses: ./.github/actions/install_node_modules
- name: Install npm Modules
uses: ./.github/actions/install-npm-modules

- name: Run ESLint
run: npx eslint . --ext .js,.jsx,.ts,.tsx
Expand All @@ -52,8 +52,8 @@ jobs:
with:
ref: ${{ github.head_ref }}

- name: Install Node Mudules
uses: ./.github/actions/install_node_modules
- name: Install npm Modules
uses: ./.github/actions/install-npm-modules

- name: Run Stylelint
run: npx stylelint "**/*.css"
2 changes: 1 addition & 1 deletion .github/workflows/notebook-execution-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
uses: actions/checkout@v3

- name: Execute Notebooks
uses: ./.github/actions/execute_notebooks
uses: ./.github/actions/execute-notebooks
4 changes: 2 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Deploy PR previews
name: Deploy PR Previews

on:
pull_request:
Expand All @@ -15,7 +15,7 @@ concurrency: preview-${{ github.ref }}

jobs:
deploy-preview:
name: Deploy PR previews
name: Deploy PR Previews
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/super_linter.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/markdownlint/markdownlint
Expand Down