Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update v0.8 #20

Merged
merged 5 commits into from
Feb 25, 2024
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
8 changes: 8 additions & 0 deletions .cspell_dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ allreduce
argsort
astype
atol
basix
cellname
cofac
dirichletbc
dofs
Expand All @@ -11,6 +13,7 @@ fenics
fenicsx
fenicsx_pulse
finsberg
functionspace
gradu
Holzapfel
holzapfelogden
Expand All @@ -36,3 +39,8 @@ subplus
varepsilon
Venant
XDMF
PYVISTA
TRAME
libgl
libxrender
xvfb
23 changes: 15 additions & 8 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
pull_request:
push:
branches:
- "**"
branches: [main]


# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -29,10 +29,17 @@ jobs:
env:
DEB_PYTHON_INSTALL_LAYOUT: deb_system
PUBLISH_DIR: ./_build/html
PYVISTA_TRAME_SERVER_PROXY_PREFIX: "/proxy/"
PYVISTA_TRAME_SERVER_PROXY_ENABLED: "True"
PYVISTA_OFF_SCREEN: false
PYVISTA_JUPYTER_BACKEND: "html"

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies for pyvista
run: apt-get update && apt-get install -y libgl1-mesa-glx libxrender1 xvfb

- name: Install dependencies
run: python3 -m pip install ".[docs]"
Expand All @@ -41,7 +48,7 @@ jobs:
run: jupyter book build -W .

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: ${{ env.PUBLISH_DIR }}

Expand All @@ -57,12 +64,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v2
uses: actions/configure-pages@v4


- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
8 changes: 6 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: Pre-commit

on: [push]
on:
pull_request:
push:
branches: [main]



jobs:
check-code:
runs-on: ubuntu-22.04
steps:
# This action sets the current path to the root of your github repo
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install pre-commit
run: python3 -m pip install pre-commit
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
name: Release

on: [push]
on:
pull_request:
push:
branches: [main]


jobs:
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build SDist and wheel
run: pipx run build

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: dist/*

Expand All @@ -27,7 +31,7 @@ jobs:
id-token: write

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_package_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:


steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install package
run: python3 -m pip install .[test]
Expand All @@ -28,14 +28,14 @@ jobs:
echo "total=$TOTAL" >> $GITHUB_ENV

- name: Upload HTML report.
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-report
path: htmlcov

- name: Create coverage Badge
if: github.ref == 'refs/heads/main'
uses: schneegans/dynamic-badges-action@v1.6.0
uses: schneegans/dynamic-badges-action@v1.7.0
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: a7290de789564f03eb6b1ee122fce423
Expand Down
8 changes: 7 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ parse:

sphinx:
config:
html_last_updated_fmt: "%b %d, %Y"
nb_custom_formats: # https://jupyterbook.org/en/stable/file-types/jupytext.html#file-types-custom
.py:
- jupytext.reads
- fmt: py

suppress_warnings: ["mystnb.unknown_mime_type"]
html_js_files:
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
Expand All @@ -38,4 +44,4 @@ sphinx:
- 'sphinx.ext.napoleon'
- 'sphinx.ext.viewcode'

exclude_patterns: [".pytest_cache/*", ".github/*"]
exclude_patterns: [".pytest_cache/*", ".github/*", ".tox/*"]
Loading
Loading