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: 1 addition & 3 deletions .github/workflows/check_docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Check API Documentation

on:
pull_request:
branches:
- devel
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/docs-preview-cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Remove PR docs preview

on:
pull_request:
branches:
- devel
types: [closed]
workflow_dispatch:

defaults:
run:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Deploy PR docs preview

on:
pull_request:
branches:
- devel
types: [opened, synchronize, reopened]
workflow_dispatch:
inputs:
pr_number:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/pr-feectools-submodule.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: PR - feectools submodule freshness

on:
pull_request:
branches:
- devel
workflow_dispatch:

concurrency:
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/profiling-clusters.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
name: Cluster workflow
on:
pull_request:
branches:
- devel-unused-for-now

# schedule:
# # run at 1 a.m. every night
# - cron: "0 1 * * *"
workflow_dispatch:

jobs:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
# browser/build.py uses tomllib and emits the pure-Python Pyodide wheel.
python-version: "3.11"

- name: Install build tools
run: |
Expand All @@ -36,7 +37,13 @@ jobs:
- name: Build the package
run: python -m build

- name: Build the Pyodide-compatible geometry package
run: python browser/build.py --output dist

- name: Show release distributions
run: ls -l dist/

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# with:
# repository-url: https://test.pypi.org/legacy/
# repository-url: https://test.pypi.org/legacy/
4 changes: 1 addition & 3 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: isort & ruff

on:
pull_request:
branches:
- devel
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/submod-feectools.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Submodule feectools

on:
pull_request:
branches:
- devel
workflow_dispatch:

concurrency:
Expand Down Expand Up @@ -32,4 +29,4 @@ jobs:
- name: Run workflow if submodule changed (all PR commits)
if: env.SUBMOD_CHANGED == 'true'
run: |
echo "${{ env.SUBMOD_NAME }} has changed, running tests..."
echo "${{ env.SUBMOD_NAME }} has changed, running tests..."
6 changes: 0 additions & 6 deletions .github/workflows/test-PR-examples.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: PR - examples tests in Container

on:
pull_request:
branches:
- devel
schedule:
# run at 1 a.m. on Sunday
- cron: "0 1 * * 0"
workflow_dispatch:

concurrency:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/test-PR-generate-params.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: PR - build, install and generate params

on:
pull_request:
branches:
- devel
schedule:
# run at 1 a.m. on Sunday
- cron: "0 1 * * 0"
workflow_dispatch:

concurrency:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/test-PR-models-clones.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: PR - domain cloning in Container

on:
pull_request:
branches:
- devel
schedule:
# run at 1 a.m. on Sunday
- cron: "0 1 * * 0"
workflow_dispatch:

concurrency:
Expand Down Expand Up @@ -88,4 +82,4 @@ jobs:
source /struphy_fortran_/env_fortran_/bin/activate
cd /struphy_fortran_/src/struphy
mpirun -n 1 pytest -m single --testmon-forceselect -xs --with-mpi --model-name Maxwell
mpirun --oversubscribe -n 4 pytest -x --testmon --with-mpi --nclones 2 models/tests/verification/
mpirun --oversubscribe -n 4 pytest -x --testmon --with-mpi --nclones 2 models/tests/verification/
8 changes: 1 addition & 7 deletions .github/workflows/test-PR-models.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: PR - model tests in Container

on:
pull_request:
branches:
- devel
schedule:
# run at 1 a.m. on Sunday
- cron: "0 1 * * 0"
workflow_dispatch:

concurrency:
Expand Down Expand Up @@ -121,4 +115,4 @@ jobs:
TESTMON_DATAFILE: ${{ github.workspace }}/.testmondata-model-mpi
run: |
source /struphy_fortran_/env_fortran_/bin/activate
mpirun --oversubscribe -n 2 pytest -x --testmon --with-mpi /struphy_fortran_/src/struphy/models/tests/verification/
mpirun --oversubscribe -n 2 pytest -x --testmon --with-mpi /struphy_fortran_/src/struphy/models/tests/verification/
6 changes: 0 additions & 6 deletions .github/workflows/test-PR-pure-python.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: PR - pure Python tests in Container

on:
pull_request:
branches:
- devel
schedule:
# run at 1 a.m. on Sunday
- cron: "0 1 * * 0"
workflow_dispatch:

concurrency:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/test-PR-tutorials.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: PR - tutorial tests in Container

on:
pull_request:
branches:
- devel
schedule:
# run at 1 a.m. on Sunday
- cron: "0 1 * * 0"
workflow_dispatch:

concurrency:
Expand Down Expand Up @@ -68,4 +62,4 @@ jobs:
cd /struphy_fortran_/tutorials
ls
jupyter nbconvert --show-config
jupyter nbconvert --execute --embed-images --to html tutorial_*.ipynb
jupyter nbconvert --execute --embed-images --to html tutorial_*.ipynb
6 changes: 0 additions & 6 deletions .github/workflows/test-PR-unit-mpi.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: PR - unit tests with MPI in Container

on:
pull_request:
branches:
- devel
schedule:
# run at 1 a.m. on Sunday
- cron: "0 1 * * 0"
workflow_dispatch:

concurrency:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/test-PR-unit.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: PR - unit tests serial in Container

on:
pull_request:
branches:
- devel
schedule:
# run at 1 a.m. on Sunday
- cron: "0 1 * * 0"
workflow_dispatch:

concurrency:
Expand All @@ -20,4 +14,4 @@ jobs:
os: ubuntu-latest
n-procs: 1
secrets:
ghcr-token: ${{ secrets.GHCR_TOKEN }}
ghcr-token: ${{ secrets.GHCR_TOKEN }}
45 changes: 45 additions & 0 deletions .github/workflows/test-browser-geometry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Browser geometry
on:
pull_request:
paths:
- 'browser/**'
- 'src/struphy/geometry/**'
- 'src/struphy/bsplines/**'
- 'src/struphy/linear_algebra/**'
- 'src/struphy/kernel_arguments/**'
- 'src/struphy/utils/**'
- 'pyproject.toml'
- '.github/workflows/test-browser-geometry.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
geometry:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
cache-dependency-path: browser/package-lock.json
- run: python browser/build.py
- run: python -m pip install browser/dist/*.whl pytest
- run: python -m pytest -q browser/tests
env:
PYTEST_DISABLE_PLUGIN_AUTOLOAD: '1'
- run: npm ci --prefix browser
- run: python browser/prepare.py
- run: npm exec --prefix browser -- playwright install --with-deps chromium
- run: npm test --prefix browser
- uses: actions/upload-artifact@v4
if: always()
with:
name: browser-geometry
path: |
browser/dist/*.whl
browser/test-results/
11 changes: 11 additions & 0 deletions browser/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/dist/
/.release-dist-check/
/site/vendor/
/site/*.whl
/site/wheel.json
/node_modules/
/.test-env/

/site/test_geometry.py
/test-results/
/playwright-report/
Loading
Loading