Skip to content

Commit 20c699c

Browse files
authored
Update Ci images + fix ufl API (#973)
* Update Ci images + fix ufl API * Remove build-requirements
1 parent 08d1f58 commit 20c699c

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/dolfinx-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ jobs:
7878
run: ctest -V --output-on-failure -R unittests
7979
- name: Install DOLFINx (Python)
8080
run: |
81-
python3 -m pip install --break-system-packages -r dolfinx/python/build-requirements.txt # TO REMOVE
81+
python3-m pip install scikit-build-core
82+
python3 -m scikit_build_core.build requires | python3 -c "import sys, json; print(' '.join(json.load(sys.stdin)))" | xargs pip install
8283
python3 -m pip -v install --break-system-packages --check-build-dependencies --no-build-isolation dolfinx/python/
8384
- name: Run mypy checks
8485
run: |

.github/workflows/pythonapp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
runs-on: ${{ matrix.os }}
4747
strategy:
4848
matrix:
49-
os: [ubuntu-22.04]
49+
os: [ubuntu-latest]
5050
python-version: ["3.10", "3.11", "3.12", "3.13"]
5151
steps:
5252
- uses: actions/checkout@v5

.github/workflows/sonarcloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build:
1111
name: Build
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-latest
1313
if: (github.event.pull_request.head.repo.full_name == github.repository) || github.ref_name == 'main'
1414
env:
1515
SONAR_SCANNER_VERSION:

python/basix/ufl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,11 +1398,11 @@ def __init__(self, cell: _basix.CellType, value_shape: tuple[int, ...]):
13981398

13991399
self._entity_counts = []
14001400
if tdim >= 1:
1401-
self._entity_counts.append(self.cell.num_vertices())
1401+
self._entity_counts.append(self.cell.num_vertices)
14021402
if tdim >= 2:
1403-
self._entity_counts.append(self.cell.num_edges())
1403+
self._entity_counts.append(self.cell.num_edges)
14041404
if tdim >= 3:
1405-
self._entity_counts.append(self.cell.num_facets())
1405+
self._entity_counts.append(self.cell.num_facets)
14061406
self._entity_counts.append(1)
14071407

14081408
def __eq__(self, other) -> bool:

0 commit comments

Comments
 (0)