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

Changes to TSFC workflow to work with new Firedrake container #359

Merged
Merged
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
19 changes: 6 additions & 13 deletions .github/workflows/tsfc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,21 @@ jobs:
runs-on: ubuntu-latest
container:
image: firedrakeproject/firedrake-vanilla-default:latest
# Github hosted runners require running as root user:
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#docker-container-filesystem
options: --user root
env:
# Since we are running as root we need to set PYTHONPATH to be able to find the installed
# packages
PYTHONPATH: /home/firedrake/firedrake:/home/firedrake/.local/lib/python3.12/site-packages
steps:
- name: Uninstall existing UFL
run: |
python3 -m pip uninstall -y fenics-ufl

- uses: actions/checkout@v4
with:
# Download UFL into a subdirectory not called 'ufl' to make sure
# that the package installs correctly. Otherwise 'import ufl' may
# work even if the installation failed because it is a subdirectory.
path: ufl-repo

- name: Uninstall existing UFL
run: |
python3 -m pip uninstall --break-system-packages -y ufl

- name: Create virtual environment
run: |
python3 -m venv venv-ufl
python3 -m venv --system-site-packages venv-ufl

- name: Install UFL
run: |
Expand All @@ -44,4 +37,4 @@ jobs:
- name: Run TSFC tests
run: |
. venv-ufl/bin/activate
python -m pytest /home/firedrake/firedrake/tests/tsfc
python -m pytest /opt/firedrake/tests/tsfc