diff --git a/.github/workflows/_config.yml b/.github/workflows/_config.yml new file mode 100644 index 0000000..9d4415b --- /dev/null +++ b/.github/workflows/_config.yml @@ -0,0 +1,13 @@ +title: executorlib with SLURM +author: Jan Janssen + +execute: + execute_notebooks : off + +repository: + url : https://github.com/pyiron-dev/executorlib-with-slurm + path_to_book : "" + +launch_buttons: + notebook_interface : jupyterlab + binderhub_url : https://mybinder.org diff --git a/.github/workflows/_toc.yml b/.github/workflows/_toc.yml new file mode 100644 index 0000000..866b349 --- /dev/null +++ b/.github/workflows/_toc.yml @@ -0,0 +1,8 @@ +format: jb-book +root: README +chapters: +- file: slurm_demo_v1.ipynb +- file: slurm_error_v1.ipynb +- file: slurm_with_flux_v1.ipynb +- file: slurm_with_lammps_v1.ipynb +- file: slurm_with_nested_executor.ipynb diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml new file mode 100644 index 0000000..027fcf6 --- /dev/null +++ b/.github/workflows/book.yml @@ -0,0 +1,25 @@ +name: Jupyterbook + +on: + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: conda-incubator/setup-miniconda@v3 + with: + auto-update-conda: true + python-version: "3.11" + auto-activate-base: false + - name: Install Jupyterbook + shell: bash -l {0} + run: | + conda install -y -c conda-forge "jupyter-book<2" + mv .github/workflows/_toc.yml . + mv .github/workflows/_config.yml . + jupyter-book build . --path-output public + - run: mv public/_build/html public_html + - run: touch public_html/.nojekyll diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..6a48be0 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,32 @@ +name: Deploy + +on: + push: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: conda-incubator/setup-miniconda@v3 + with: + auto-update-conda: true + python-version: "3.11" + auto-activate-base: false + - name: Install Jupyterbook + shell: bash -l {0} + run: | + conda install -y -c conda-forge "jupyter-book<2" + mv .github/workflows/_toc.yml . + mv .github/workflows/_config.yml . + jupyter-book build . --path-output public + - run: mv public/_build/html public_html + - run: touch public_html/.nojekyll + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@3.7.1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages # The branch the action should deploy to. + FOLDER: public_html # The folder the action should deploy. + CLEAN: true diff --git a/README.md b/README.md new file mode 100644 index 0000000..2346162 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# executorlib with SLURM +A number of example for applying [executorlib](https://executorlib.readthedocs.io/) on [CMTI](https://docs.mpcdf.mpg.de/doc/computing/clusters/systems/Sustainable_Materials.html).