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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build IGA-Python Jupyter Book
name: Jupyter book

on:
push:
Expand All @@ -7,23 +7,20 @@ on:
branches: [ master ]

jobs:
deploy-book:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- os: ubuntu-24.04
python-version: '3.12'

- os: macos-15
python-version: '3.12'

name: build / ${{ matrix.os }} / python${{ matrix.python-version }}
env:
FC: gfortran-14

name: ${{ matrix.os }} / Python ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -77,11 +74,23 @@ jobs:
- name: Build Jupyter Book
run: make docs

- name: Upload artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: _build/html
name: github-pages_${{ matrix.os }}_python${{ matrix.python-version }}

deploy:
if: github.event_name != 'pull_request'
needs: build
runs-on: ubuntu-24.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
if: ${{ (github.ref == 'refs/heads/master') && startsWith(matrix.os, 'ubuntu') }}
run: |
pip install ghp-import
ghp-import -n -p -f _build/html
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: github-pages_ubuntu-24.04_python3.12
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Ahmed Ratnani
Mohamed Jalal Maaouni
Paul Rigor

Yaman Güçlü
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Welcome to IGA-Python

This project provides a tutorial for isogeometric analysis (IGA) using Python and the Psydac library (pyccel/psydac). The numerical examples can be consulted online at pyccel.github.io/IGA-Python, or run with JupyterNotebook on a personal computer.
This project provides a tutorial for isogeometric analysis (IGA) using Python and the Psydac library (pyccel/psydac). The numerical examples can be consulted online at [pyccel.github.io/IGA-Python](https://pyccel.github.io/IGA-Python), or run with Jupyter Notebook on a personal computer.

## Editing and building IGA-Python locally

Expand Down Expand Up @@ -70,3 +70,15 @@ nb-clean remove-filter
3. Stage the modified files with `git add`. Then run `git diff` to check if the changed `*.ipynb` notebooks doesn't include unnecessary diffs (e.g. notebook metadata).
4. `git commit` your changes.
5. *OPTIONAL*. Share your changes to this repo via a [pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request).

## Contributing

There are several ways to contribute to this project.
If you find a problem, please check if this is already discussed in one of [our issues](https://github.com/pyccel/IGA-Python/issues) and feel free to add your opinion; if not, please create a [new issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/creating-an-issue).
If you want to fix an issue, improve our notebooks, or add a new example, please [fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo) our Git repository, make and commit your changes, and create a [pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request) (PRs).

All PRs are reviewed by the project maintainers.
During the PR review, GitHub workflows are triggered on various platforms.
These workflows build the notebooks and prepare them to be deployed as a static HTML website to [pyccel.github.io/IGA-Python](https://pyccel.github.io/IGA-Python).
Deploy does not happen before the final merge of the PR, but the HTML files can be downloaded as a zip file from GitHub, and opened with any browser for inspection.
To download the zip file, select the workflow run of interest from the `Actions` tab, click on `Summary`, and look under `Artifacts`.