Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version: ['lts', '1', 'pre']
arch: [x64]
os: [ubuntu-latest]

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
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ 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"
TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"
WriteVTK = "64499a7a-5c06-52f2-abe2-ccb03c286192"
4 changes: 0 additions & 4 deletions src/PhysicalModels/PhysicalModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion test/TestConstitutiveModels/PhysicalModels.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Gridap
using ForwardDiff
using JSON
using StaticArrays
using Test
using HyperFEM.PhysicalModels
Expand Down Expand Up @@ -430,7 +431,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)
Expand Down
5 changes: 0 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ using Gridap.FESpaces
using Gridap.CellData
using Gridap.TensorValues
using HyperFEM: jacobian, IterativeSolver, solve!
using WriteVTK
using Revise
using DrWatson
using JSON
using ForwardDiff
using BenchmarkTools

import Base.isapprox
Expand Down