Skip to content

Commit

Permalink
Setup git before cloning the repository on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-ballarin committed Nov 25, 2023
1 parent 3a0ccee commit 0d62571
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,21 @@ jobs:
include:
- backend: none
container: ubuntu:rolling
setup_git: |
export DEBIAN_FRONTEND="noninteractive"
apt update -y -q
apt install -y -qq git
setup_container: |
export DEBIAN_FRONTEND="noninteractive"
apt update -y -q
apt install -y -qq git python3-mpi4py python3-numpy python3-pip xorg
apt install -y -qq python3-mpi4py python3-numpy python3-pip xorg
rm /usr/lib/python3.*/EXTERNALLY-MANAGED
notebook_pattern: |
"**/generate_mesh*.ipynb"
"**/tutorial_*_meshio.ipynb"
- backend: dolfin
container: numericalpdes/base_images:fenics
setup_git: ""
setup_container: |
export DEBIAN_FRONTEND="noninteractive"
apt update -y -q
Expand All @@ -45,6 +50,7 @@ jobs:
"**/tutorial_*_dolfin.ipynb"
- backend: dolfinx
container: ghcr.io/fenics/dolfinx/dolfinx:nightly
setup_git: ""
setup_container: |
export DEBIAN_FRONTEND="noninteractive"
apt update -y -q
Expand All @@ -53,6 +59,7 @@ jobs:
"**/tutorial_*_dolfinx.ipynb"
- backend: firedrake
container: firedrakeproject/firedrake
setup_git: ""
setup_container: |
export DEBIAN_FRONTEND="noninteractive"
apt update -y -q
Expand All @@ -65,6 +72,8 @@ jobs:
image: ${{ matrix.container }}
options: --user root
steps:
- name: Setup git
run: ${{ matrix.setup_git }}
- name: Determine which branch to checkout when cloning source repository
id: source_branch
run: |
Expand Down

0 comments on commit 0d62571

Please sign in to comment.