Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install FEniCSx adapter in venv for running tutorials #33

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
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
17 changes: 15 additions & 2 deletions .github/workflows/run-tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,21 @@ jobs:
rm -rf /var/lib/apt/lists/*
- name: Check FEniCSx version
run: python3 -c "import dolfinx; print('FEniCS-X version '+dolfinx.__version__)"
- name: Install adapter
run: pip3 install --user .
- name: Create venv for Dirichlet participants and install adapter
run: |
cd tutorials/partitioned-heat-conduction/dirichlet-fenicsx
python3 -m venv .venv
. .venv/bin/activate
pip3 install ../../..
- name: Create venv for Neumann participants and install adapter
run: |
cd tutorials/partitioned-heat-conduction/neumann-fenicsx
python3 -m venv .venv
. .venv/bin/activate
pip3 install ../../..
- name: Remove fenicsxadapter from requirements to avoid overwriting develop version
run: |
sed -i '/fenicsxprecice/d' tutorials/partitioned-heat-conduction/solver-fenicsx/requirements.txt
# Tutorial is currently hosted under https://github.com/precice/fenicsx-adapter, should be moved to https://github.com/precice/tutorials when working. See https://github.com/precice/tutorials/issues/491
# - name: Get tutorials
# run: git clone -b develop https://github.com/precice/tutorials.git
Expand Down