From 44d1a1437b3d0f77eba9cef2348efce2b5f44251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mas=C3=B3?= Date: Mon, 8 Sep 2025 16:46:21 +0200 Subject: [PATCH 01/10] initial commit --- .github/workflows/ci.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..11be278 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,29 @@ +name: CI + +on: [pull_request, workflow_dispatch] + +jobs: + test: # Main CI tests + name: Tests ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1.9' + - '1.10' + - '1.11' + os: + - ubuntu-latest + arch: + - x64 + + steps: + - uses: actions/checkout@v5 + - uses: julia-actions/setup-julia@v2 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 From 75dcd1e62dc25ac25d51cca75e53da7d721b0e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mas=C3=B3?= Date: Mon, 8 Sep 2025 16:48:35 +0200 Subject: [PATCH 02/10] rename --- .github/workflows/{ci.yaml => ci.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{ci.yaml => ci.yml} (100%) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yml similarity index 100% rename from .github/workflows/ci.yaml rename to .github/workflows/ci.yml From 646ac6771eed01c847ed4d5b65deeba5f41e5fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mas=C3=B3?= Date: Mon, 8 Sep 2025 17:07:53 +0200 Subject: [PATCH 03/10] minor --- .github/workflows/ci.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11be278..0355990 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,22 +1,16 @@ -name: CI +name: Tests on: [pull_request, workflow_dispatch] jobs: test: # Main CI tests - name: Tests ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - version: - - '1.9' - - '1.10' - - '1.11' - os: - - ubuntu-latest - arch: - - x64 + version: ['lts', '1', 'pre'] + arch: [x64] + os: [ubuntu-latest] steps: - uses: actions/checkout@v5 From f4419a940abb646fce9560d0650e0515e8f62cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mas=C3=B3?= Date: Mon, 8 Sep 2025 17:10:01 +0200 Subject: [PATCH 04/10] minor --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0355990..4e597a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,8 +2,12 @@ name: Tests on: [pull_request, workflow_dispatch] +permissions: # needed to allow julia-actions/cache to delete old caches that it has created + actions: write + contents: read + jobs: - test: # Main CI tests + test: # main CI tests runs-on: ${{ matrix.os }} strategy: fail-fast: false From 1327227f227977c1f14c3a4cc7649f46646b5ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mas=C3=B3?= Date: Mon, 8 Sep 2025 17:19:35 +0200 Subject: [PATCH 05/10] fix compilation after #2 --- src/PhysicalModels/PhysicalModels.jl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/PhysicalModels/PhysicalModels.jl b/src/PhysicalModels/PhysicalModels.jl index 015e39c..8b10ea4 100644 --- a/src/PhysicalModels/PhysicalModels.jl +++ b/src/PhysicalModels/PhysicalModels.jl @@ -7,10 +7,6 @@ using DrWatson using ForwardDiff using LinearAlgebra using ..TensorAlgebra -using ..TensorAlgebra: _δδ_μ_3D -using ..TensorAlgebra: _δδ_λ_3D -using ..TensorAlgebra: _δδ_μ_2D -using ..TensorAlgebra: _δδ_λ_2D using ..TensorAlgebra: _∂H∂F_2D using ..TensorAlgebra: I3 using ..TensorAlgebra: I9 From c9fb0d9e417ea446849721f33cbca0c1737ec366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mas=C3=B3?= Date: Mon, 8 Sep 2025 18:04:58 +0200 Subject: [PATCH 06/10] added Test to project.toml --- Project.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Project.toml b/Project.toml index 1e89c3d..0614a5e 100644 --- a/Project.toml +++ b/Project.toml @@ -25,5 +25,6 @@ ProfileView = "c46f51b8-102a-5cf2-8d2c-8597cb0e0da7" Revise = "295af30f-e4ad-537b-8983-00126c2a3abe" Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f" WriteVTK = "64499a7a-5c06-52f2-abe2-ccb03c286192" From 53dd559c459e4341c7fe70ed9ef811cacce6ed7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mas=C3=B3?= Date: Tue, 9 Sep 2025 09:34:35 +0200 Subject: [PATCH 07/10] fix path of thermomech PINNS --- test/TestConstitutiveModels/PhysicalModels.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/TestConstitutiveModels/PhysicalModels.jl b/test/TestConstitutiveModels/PhysicalModels.jl index ef89ef4..2c7cee5 100644 --- a/test/TestConstitutiveModels/PhysicalModels.jl +++ b/test/TestConstitutiveModels/PhysicalModels.jl @@ -430,7 +430,8 @@ end return n_layers, Weights, Biases, ϵ, β end - data_filename = "test/models/test_NN_TEM.json" + BASE_FOLDER = dirname(dirname(pathof(HyperFEM))) + data_filename = joinpath(BASE_FOLDER, "test/models/test_NN_TEM.json") n_layers, Weights, Biases, ϵ, β = ExtractingInfo(data_filename) model = ThermoElectroMech_PINNs(; W=Weights, b=Biases, ϵ=ϵ, β=β, nLayer=n_layers) From c651b354f8c7abeba4568770e7523f0863ad80b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mas=C3=B3?= Date: Tue, 9 Sep 2025 09:38:42 +0200 Subject: [PATCH 08/10] removed Revise prom Project.toml --- Project.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/Project.toml b/Project.toml index 0614a5e..9faf74f 100644 --- a/Project.toml +++ b/Project.toml @@ -22,7 +22,6 @@ PartitionedArrays = "5a9dfac6-5c52-46f7-8278-5e2210713be9" Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" Profile = "9abbd945-dff8-562f-b5e8-e1ebf5ef1b79" ProfileView = "c46f51b8-102a-5cf2-8d2c-8597cb0e0da7" -Revise = "295af30f-e4ad-537b-8983-00126c2a3abe" Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" From 7a5fd1226be5c8a97836819022da77dfd1fa2e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mas=C3=B3?= Date: Tue, 9 Sep 2025 09:47:02 +0200 Subject: [PATCH 09/10] removed using Revise --- test/runtests.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 8e0e807..178ff74 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -8,7 +8,6 @@ using Gridap.CellData using Gridap.TensorValues using HyperFEM: jacobian, IterativeSolver, solve! using WriteVTK -using Revise using DrWatson using JSON using ForwardDiff From 9d32f0be2db918794d73aab5cd9278e59be4b192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mas=C3=B3?= Date: Tue, 9 Sep 2025 09:53:45 +0200 Subject: [PATCH 10/10] removed unused usings --- test/TestConstitutiveModels/PhysicalModels.jl | 1 + test/runtests.jl | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/test/TestConstitutiveModels/PhysicalModels.jl b/test/TestConstitutiveModels/PhysicalModels.jl index 2c7cee5..81bf2be 100644 --- a/test/TestConstitutiveModels/PhysicalModels.jl +++ b/test/TestConstitutiveModels/PhysicalModels.jl @@ -1,5 +1,6 @@ using Gridap using ForwardDiff +using JSON using StaticArrays using Test using HyperFEM.PhysicalModels diff --git a/test/runtests.jl b/test/runtests.jl index 178ff74..82d8dbd 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -7,10 +7,6 @@ using Gridap.FESpaces using Gridap.CellData using Gridap.TensorValues using HyperFEM: jacobian, IterativeSolver, solve! -using WriteVTK -using DrWatson -using JSON -using ForwardDiff using BenchmarkTools import Base.isapprox