From 182d0b29668a937cb0c4ee5f0598e8b15efb11cc Mon Sep 17 00:00:00 2001 From: Connor Ward Date: Fri, 21 Feb 2025 17:30:59 +0000 Subject: [PATCH] Another attempt --- .github/workflows/tsfc-tests.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/tsfc-tests.yml b/.github/workflows/tsfc-tests.yml index 5f6e3f9e2..9ba926e1f 100644 --- a/.github/workflows/tsfc-tests.yml +++ b/.github/workflows/tsfc-tests.yml @@ -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