-
Notifications
You must be signed in to change notification settings - Fork 3
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
47 changed files
with
1,221 additions
and
1,272 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
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
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ name: Container | |
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
workflow_dispatch: | ||
|
||
env: | ||
|
@@ -21,14 +23,15 @@ jobs: | |
steps: | ||
- name: Check out | ||
if: always() | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: hadolint/[email protected] | ||
with: | ||
dockerfile: Dockerfile | ||
ignore: 'DL3008,DL3013' | ||
# - uses: hadolint/[email protected] | ||
# with: | ||
# dockerfile: Dockerfile | ||
# ignore: 'DL3008,DL3013' | ||
# verbose: true | ||
|
||
- name: Build Image | ||
id: build_image | ||
|
@@ -41,9 +44,10 @@ jobs: | |
- name: Run tests | ||
run: | | ||
podman run -e MPIEXEC_FLAGS="--allow-run-as-root --oversubscribe" --rm ${{ steps.build_image.outputs.image }}:${{ github.sha }} python3 -m pytest --junit-xml=test-results.xml tests/ | ||
podman run -e MPIEXEC_FLAGS="--allow-run-as-root --oversubscribe" --workdir /pynucleus --rm ${{ steps.build_image.outputs.image }}:${{ github.sha }} python3 -m pytest --junit-xml=test-results.xml tests/ | ||
- name: Push To GHCR | ||
if: github.event_name == 'push' | ||
uses: redhat-actions/push-to-registry@v2 | ||
id: push | ||
with: | ||
|
@@ -56,5 +60,6 @@ jobs: | |
--disable-content-trust | ||
- name: Echo outputs | ||
if: github.event_name == 'push' | ||
run: | | ||
echo "${{ toJSON(steps.push.outputs) }}" |
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,69 @@ | ||
name: Documentation CI | ||
|
||
on: | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
jobs: | ||
|
||
linux: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 180 | ||
env: | ||
MPIEXEC_FLAGS: "--allow-run-as-root --oversubscribe" | ||
PYNUCLEUS_BUILD_PARALLELISM: 2 | ||
|
||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Pull ccache cache | ||
id: ccache-restore | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: /home/runner/.cache/ccache | ||
key: ccache | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install Ubuntu packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install mpi-default-bin mpi-default-dev libmetis-dev libparmetis-dev libsuitesparse-dev ccache | ||
- name: Install Python dependencies | ||
run: make prereq && make prereq-extra && python -m pip install wheel | ||
|
||
- name: Install | ||
run: make dev | ||
|
||
- name: Remove ccache cache | ||
if: ${{ steps.ccache-restore.outputs.cache-hit }} | ||
shell: bash | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh extension install actions/gh-actions-cache | ||
gh actions-cache delete ccache --confirm | ||
continue-on-error: true | ||
|
||
- name: Push ccache cache | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: /home/runner/.cache/ccache | ||
key: ccache | ||
|
||
- name: Build documentation | ||
run: | | ||
make docs | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: 'docs/build' |
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
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
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
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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
|
||
This is a container image for PyNucleus. | ||
|
||
The drivers and examples for PyNucleus can be found in /pynucleus/drivers and /pynucleus/examples | ||
The directory from which the container was launched on the host system is mapped to /root. | ||
PyNucleus is installed at /pynucleus. | ||
A copy of the drivers and examples for PyNucleus can be found in /root/drivers and /root/examples. | ||
The Jupyter notebook interface is available at https://localhost:8889 on the host. | ||
A quick way to check that everything works is to run | ||
|
||
The directory from which the container was launched on the host system is mapped to /user | ||
/root/drivers/runFractional.py | ||
|
||
This should print some information about the solution of a fractional Laplacian problem and show several plots. |
Oops, something went wrong.