Skip to content

Commit 38caa5e

Browse files
committed
test
1 parent 42fbcd2 commit 38caa5e

2 files changed

Lines changed: 53 additions & 35 deletions

File tree

.github/workflows/architectures.yml

Lines changed: 52 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,40 +15,58 @@ on:
1515
- cron: "0 8 * * 1"
1616

1717
jobs:
18-
test:
19-
runs-on: ubuntu-latest
20-
container: ${{ matrix.arch }}/ubuntu
21-
strategy:
22-
matrix:
23-
arch: ["s390x"]
24-
steps:
25-
- name: Checkout FFCx
26-
uses: actions/checkout@v6
27-
28-
- name: Set up Python
29-
uses: actions/setup-python@v6
30-
31-
- name: Install dependencies (non-Python, Linux)
32-
run: sudo apt-get install -y graphviz libgraphviz-dev ninja-build pkg-config libblas-dev liblapack-dev
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
# 1️⃣ Enable QEMU emulation
23+
- name: Set up QEMU
24+
uses: docker/setup-qemu-action@v3
25+
with:
26+
platforms: s390x
27+
28+
# 2️⃣ Enable Docker Buildx
29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@v3
31+
32+
# 3️⃣ Test running an s390x container
33+
- name: Run s390x Ubuntu
34+
run: |
35+
docker run --rm --platform linux/s390x s390x/ubuntu:latest uname -m
36+
# test:
37+
# runs-on: ubuntu-latest
38+
# container: ${{ matrix.arch }}/ubuntu
39+
# strategy:
40+
# matrix:
41+
# arch: ["s390x"]
42+
# steps:
43+
# - name: Checkout FFCx
44+
# uses: actions/checkout@v6
45+
46+
# - name: Set up Python
47+
# uses: actions/setup-python@v6
48+
49+
# - name: Install dependencies (non-Python, Linux)
50+
# run: sudo apt-get install -y graphviz libgraphviz-dev ninja-build pkg-config libblas-dev liblapack-dev
3351

34-
- name: Install FEniCS dependencies
35-
run: |
36-
pip install git+https://github.com/FEniCS/ufl.git
37-
pip install git+https://github.com/FEniCS/basix.git
38-
39-
- name: Install FFCx
40-
run: pip install .[ci,optional]
41-
42-
- name: Run unit tests
43-
run: >
44-
python -m pytest test/
45-
-n auto
46-
-W error
47-
48-
- name: Run FFCx demos
49-
run: >
50-
pytest demo/test_demos.py
51-
-W error
52-
# -n auto
52+
# - name: Install FEniCS dependencies
53+
# run: |
54+
# pip install git+https://github.com/FEniCS/ufl.git
55+
# pip install git+https://github.com/FEniCS/basix.git
56+
57+
# - name: Install FFCx
58+
# run: pip install .[ci,optional]
59+
60+
# - name: Run unit tests
61+
# run: >
62+
# python -m pytest test/
63+
# -n auto
64+
# -W error
65+
66+
# - name: Run FFCx demos
67+
# run: >
68+
# pytest demo/test_demos.py
69+
# -W error
70+
# # -n auto
5371

5472

test/test_jit_forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ def tabulate_tensor(ele_type, V_cell_type, W_cell_type, coeffs):
12901290
assert np.allclose(A, A_ref)
12911291

12921292

1293-
@pytest.mark.parametrize("dtype", ["float64"])
1293+
@pytest.mark.parametrize("dtype", ["float32", "float64"])
12941294
def test_ds_prism(compile_args, dtype):
12951295
element = basix.ufl.element("Lagrange", "prism", 1)
12961296
domain = ufl.Mesh(basix.ufl.element("Lagrange", "prism", 1, shape=(3,)))

0 commit comments

Comments
 (0)