Skip to content

Commit

Permalink
CI: Simplified dependency installation
Browse files Browse the repository at this point in the history
  • Loading branch information
kvrigor committed Nov 27, 2024
1 parent 75060e4 commit c804362
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 23 deletions.
38 changes: 15 additions & 23 deletions .github/workflows/deploy-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,32 @@ name: Build and Deploy Jupyter Book

on:
push:
branches:
- master
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
deploy-book:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.12'
cache: 'pip'
cache-dependency-path: |
requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get update
sudo apt-get install gfortran
sudo apt-get install openmpi-bin libopenmpi-dev
sudo apt-get install libhdf5-openmpi-dev
git clone https://github.com/pyccel/psydac.git
cd psydac
python -m pip install -r requirements.txt
python -m pip install -r requirements_extra.txt --no-build-isolation
pip install .
pip install jupyter-book ghp-import sphinx_proof
python -m ipykernel install --user --name .iga-python --display-name "IGA-Python"
python -m ipykernel install --user --name v_psydac --display-name "Python (v_psydac)"
- name: Install Jupyter Book and Psydac
run: pip3 install -r requirements.txt

- name: Build Jupyter Book
run: jupyter-book build .

- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/master'
run: ghp-import -n -p -f _build/html
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ sphinx-proof
matplotlib
pyccel
ipykernel
notebook
psydac[extra] @ git+https://github.com/pyccel/psydac.git@devel#egg=psydac

0 comments on commit c804362

Please sign in to comment.