Skip to content

Commit a792833

Browse files
committed
Use conda to build book
1 parent 764c82d commit a792833

File tree

3 files changed

+33
-34
lines changed

3 files changed

+33
-34
lines changed

.github/workflows/book.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,27 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- name: Install Fortran, Lapack and FFTW
14-
run:
15-
sudo apt-get install gfortran libblas-dev liblapack-dev libfftw3-dev
16-
shell: bash
1713
- uses: actions/setup-python@v5
1814
with:
19-
python-version: '3.8'
20-
- uses: julia-actions/setup-julia@v2
15+
python-version: 3.9
2116

22-
- name: Install python dependencies
23-
run: python -m pip install -r requirements.txt
17+
- name: Setup Miniconda
18+
uses: conda-incubator/[email protected]
19+
with:
20+
environment-file: environment.yml
21+
activate-environment: python-fortran
22+
python-version: 3.9
23+
auto-activate-base: false
2424

25-
- name: Install Julia packages
26-
run: julia -e ' using Pkg; Pkg.add(["REPL", "PyCall"]); Pkg.build("PyCall")'
25+
- name: Install PyCall
26+
shell: bash -l {0}
27+
run: |
28+
julia -e ' using Pkg; Pkg.add(["REPL", "PyCall"]); Pkg.build("PyCall")'
2729
2830
- name: Build the book
29-
run: jupyter-book build notebooks
31+
shell: bash -l {0}
32+
run: |
33+
jupyter-book build notebooks
3034
3135
- name: GitHub Pages action
3236
uses: peaceiris/actions-gh-pages@v4

environment.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,22 @@ name: python-fortran
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.8
6-
- pip
7-
- pip:
8-
- -r requirements.txt
95
- jupytext
6+
- cython
7+
- fortran-magic
8+
- gast
9+
- imageio
10+
- ipykernel
11+
- ipywidgets
12+
- pyjulia
13+
- matplotlib
14+
- meson
15+
- numba
16+
- numpy
17+
- pillow
18+
- pythran
19+
- seaborn
20+
- tqdm
21+
- fftw
22+
- scipy
23+
- jupyter-book

requirements.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)