Skip to content

Commit

Permalink
Another attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjward committed Feb 21, 2025
1 parent 49aeff7 commit 182d0b2
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/tsfc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,44 +17,38 @@ jobs:
# 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
defaults:
run:
working-directory: /home/firedrake
env:
PYTHONPATH: /home/firedrake/.local/lib/python3.12/site-packages
steps:
# - name: Fix HOME
# # For unknown reasons GitHub actions overwrite HOME to /github/home
# # which will break everything unless fixed
# # (https://github.com/actions/runner/issues/863)
# run: echo "HOME=/home/firedrake" >> "$GITHUB_ENV"
- name: Fix HOME
# For unknown reasons GitHub actions overwrite HOME to /github/home
# which will break everything unless fixed
# (https://github.com/actions/runner/issues/863)
run: echo "HOME=/home/firedrake" >> "$GITHUB_ENV"

- 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: /home/firedrake/ufl-repo
path: ufl-repo

- name: Create virtual environment
# Pass '--system-site-packages' so Firedrake is found
run: |
su firedrake
python3 -m venv --system-site-packages venv-ufl
python3 -m venv venv-ufl
- name: Install UFL
run: |
su firedrake
. venv-ufl/bin/activate
pip install ./ufl-repo
pip list
- name: Run firedrake-check
run: |
su firedrake
. venv-ufl/bin/activate
firedrake-check
- name: Run TSFC tests
run: |
su firedrake
. venv-ufl/bin/activate
python -m pytest /home/firedrake/firedrake/tests/tsfc

0 comments on commit 182d0b2

Please sign in to comment.