Skip to content

Commit 0292943

Browse files
jhaleclaude
andauthored
Add fenicsx-refs.env and use it in CI workflows to pin dependency refs (#488)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e60b686 commit 0292943

2 files changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/fenicsx-refs.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
basix_repository=FEniCS/basix
2+
basix_ref=main
3+
ffcx_repository=FEniCS/ffcx
4+
ffcx_ref=main
5+
dolfinx_repository=FEniCS/dolfinx
6+
dolfinx_ref=main

.github/workflows/fenicsx-tests.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525

2626
steps:
2727
- uses: actions/checkout@v6
28+
- name: Load environment variables
29+
run: cat .github/workflows/fenicsx-refs.env >> $GITHUB_ENV
2830
- name: Set up Python
2931
uses: actions/setup-python@v6
3032
with:
@@ -40,14 +42,14 @@ jobs:
4042
4143
- name: Install Basix
4244
run: |
43-
python3 -m pip install git+https://github.com/FEniCS/basix.git
45+
python3 -m pip install git+https://github.com/${{ env.basix_repository }}.git@${{ env.basix_ref }}
4446
4547
- name: Clone FFCx
4648
uses: actions/checkout@v6
4749
with:
4850
path: ./ffcx
49-
repository: FEniCS/ffcx
50-
ref: main
51+
repository: ${{ env.ffcx_repository }}
52+
ref: ${{ env.ffcx_ref }}
5153

5254
- name: Install FFCx
5355
run: |
@@ -71,21 +73,24 @@ jobs:
7173
steps:
7274
- uses: actions/checkout@v6
7375

76+
- name: Load environment variables
77+
run: cat .github/workflows/fenicsx-refs.env >> $GITHUB_ENV
78+
7479
- name: Install UFL
7580
run: |
7681
pip3 install --break-system-packages .
7782
7883
- name: Install Basix and FFCx
7984
run: |
80-
python3 -m pip install --break-system-packages git+https://github.com/FEniCS/basix.git
81-
python3 -m pip install --break-system-packages git+https://github.com/FEniCS/ffcx.git
85+
python3 -m pip install --break-system-packages git+https://github.com/${{ env.basix_repository }}.git@${{ env.basix_ref }}
86+
python3 -m pip install --break-system-packages git+https://github.com/${{ env.ffcx_repository }}.git@${{ env.ffcx_ref }}
8287
8388
- name: Clone DOLFINx
8489
uses: actions/checkout@v6
8590
with:
8691
path: ./dolfinx
87-
repository: FEniCS/dolfinx
88-
ref: main
92+
repository: ${{ env.dolfinx_repository }}
93+
ref: ${{ env.dolfinx_ref }}
8994
- name: Install DOLFINx
9095
run: |
9196
cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer -B build -S dolfinx/cpp/

0 commit comments

Comments
 (0)