-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
5,124 additions
and
206 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Docs | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
|
||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install UV | ||
uses: astral-sh/setup-uv@v5 | ||
- name: Create Venv | ||
run: uv sync --all-extras | ||
- name: Run notebooks | ||
run: find . -name "*.ipynb" -not -path "*/tests/*" -not -path "*/.ipynb_checkpoints/*" | xargs parallel uv run papermill {} {} -k python3 ':::' | ||
- name: Upload artifacts [internals] | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: internals | ||
path: ./internals | ||
- name: Upload artifacts [examples] | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: examples | ||
path: ./examples | ||
|
||
docs: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- run | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Download artifacts [internals] | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: internals | ||
path: ./internals | ||
- name: Download artifacts [examples] | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: examples | ||
path: ./examples | ||
- name: Install UV | ||
uses: astral-sh/setup-uv@v5 | ||
- name: Create Venv | ||
run: uv sync --all-extras | ||
- name: Build docs | ||
run: make docs && touch docs/build/html/.nojekyll | ||
- name: Upload artifacts [docs] | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: docs | ||
path: ./docs/build/html | ||
|
||
pages: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- docs | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Download 'docs' artifact | ||
uses: actions/download-artifact@master | ||
with: | ||
name: docs | ||
path: docs/build/html | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: pages | ||
folder: docs/build/html |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install UV | ||
uses: astral-sh/setup-uv@v5 | ||
- name: Create Venv | ||
run: uv sync --all-extras | ||
- name: Build Wheels | ||
run: make build | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
path: ./dist | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Download Wheels | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: dist | ||
path: ./dist | ||
- name: PyPI Release | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
- name: GitHub Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: dist/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Test | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- uses: pre-commit/[email protected] | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install UV | ||
uses: astral-sh/setup-uv@v5 | ||
- name: Create Venv | ||
run: uv sync --all-extras | ||
- name: Run tests | ||
run: pytest | ||
- name: Upload artifacts [tests] | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: tests | ||
path: ./tests | ||
|
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
Oops, something went wrong.