Skip to content

Commit

Permalink
Bump ubuntu and add blas (#741)
Browse files Browse the repository at this point in the history
* Bump ubuntu and add blas

* Add lapack

* Update ruff formatting

* add cron job schedule

* Revert matrix strategy
  • Loading branch information
jorgensd authored Jan 15, 2025
1 parent eb8407b commit e5f11aa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/dolfinx-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
description: "UFL branch or tag"
default: "main"
type: string
# Weekly build on Mondays at 8 am
schedule:
- cron: "0 8 * * 1"

jobs:
build:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
- main
workflow_dispatch:

# Weekly build on Mondays at 8 am
schedule:
- cron: "0 8 * * 1"

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -54,7 +58,7 @@ jobs:
- name: Install dependencies (non-Python, Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get install -y graphviz libgraphviz-dev ninja-build pkg-config
sudo apt-get install -y graphviz libgraphviz-dev ninja-build pkg-config libblas-dev liblapack-dev
- name: Install dependencies (non-Python, macOS)
if: runner.os == 'macOS'
run: brew install ninja
Expand Down
9 changes: 2 additions & 7 deletions demo/test_demos.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_demo(file, scalar_type):
assert os.system(f"cd {demo_dir} && ffcx {opts} {file}.py") == 0
assert (
os.system(
f"cd {demo_dir} && " f'cl.exe /I "../ffcx/codegeneration" {extra_flags} /c {file}.c'
f'cd {demo_dir} && cl.exe /I "../ffcx/codegeneration" {extra_flags} /c {file}.c'
)
) == 0
assert (
Expand All @@ -65,11 +65,6 @@ def test_demo(file, scalar_type):
)
assert os.system(f"cd {demo_dir} && ffcx {opts} {file}.py") == 0
assert (
os.system(
f"cd {demo_dir} && "
f"{cc} -I../ffcx/codegeneration "
f"{extra_flags} "
f"-c {file}.c"
)
os.system(f"cd {demo_dir} && {cc} -I../ffcx/codegeneration {extra_flags} -c {file}.c")
== 0
)

0 comments on commit e5f11aa

Please sign in to comment.