Skip to content

Commit cef4f40

Browse files
Fixed meshing issues and stuff.
1 parent 0d26e22 commit cef4f40

17 files changed

Lines changed: 999 additions & 2660 deletions

File tree

.github/workflows/CI.yml

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,33 +25,55 @@ jobs:
2525
matrix:
2626
version:
2727
- '1.11'
28+
- 'pre'
2829
os:
2930
- ubuntu-latest
3031
arch:
3132
- x64
3233
steps:
3334
- uses: actions/checkout@v4
34-
- uses: julia-actions/setup-julia@v1
35+
- uses: julia-actions/setup-julia@v2
3536
with:
3637
version: ${{ matrix.version }}
3738
arch: ${{ matrix.arch }}
38-
- uses: actions/cache@v3
39-
env:
40-
cache-name: cache-artifacts
41-
with:
42-
path: ~/.julia/artifacts
43-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
44-
restore-keys: |
45-
${{ runner.os }}-test-${{ env.cache-name }}-
46-
${{ runner.os }}-test-
47-
${{ runner.os }}-
39+
- uses: julia-actions/cache@v2
4840
- uses: julia-actions/julia-buildpkg@v1
49-
- name: Run tests
50-
uses: julia-actions/julia-runtest@v1
51-
with:
52-
annotate: true
41+
- uses: julia-actions/julia-runtest@v1
5342
- uses: julia-actions/julia-processcoverage@v1
54-
- name: Upload results to Codecov
55-
uses: codecov/codecov-action@v5
43+
- uses: codecov/codecov-action@v4
5644
with:
45+
files: lcov.info
5746
token: ${{ secrets.CODECOV_TOKEN }}
47+
fail_ci_if_error: false
48+
docs:
49+
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
50+
name: Documentation
51+
runs-on: ubuntu-latest
52+
permissions:
53+
actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created
54+
contents: write
55+
statuses: write
56+
steps:
57+
- uses: actions/checkout@v4
58+
- uses: julia-actions/setup-julia@v2
59+
with:
60+
version: '1'
61+
- uses: julia-actions/cache@v2
62+
- name: Configure doc environment
63+
shell: julia --project=docs --color=yes {0}
64+
run: |
65+
using Pkg
66+
Pkg.develop(PackageSpec(path=pwd()))
67+
Pkg.instantiate()
68+
- uses: julia-actions/julia-buildpkg@v1
69+
- uses: julia-actions/julia-docdeploy@v1
70+
env:
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
73+
- name: Run doctests
74+
shell: julia --project=docs --color=yes {0}
75+
run: |
76+
using Documenter: DocMeta, doctest
77+
using LineCableModels
78+
DocMeta.setdocmeta!(LineCableModels, :DocTestSetup, :(using LineCableModels); recursive=true)
79+
doctest(LineCableModels)

.github/workflows/make-docs.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"clear": true,
2424
"close": true
2525
},
26-
"command": "julia --project -e 'include(\"docs/setup.jl\"); include(\"docs/make.jl\")'",
26+
"command": "cd docs && julia --project=. -e \"using Pkg; Pkg.develop(PackageSpec(path=\\\"..\\\")); Pkg.instantiate()\" && julia --project=. make.jl",
2727
"options": {
2828
"cwd": "${workspaceFolder}"
2929
},

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

1616
### Added
1717

18+
- Included interface to run finite element simulations using [Onelab](https://onelab.info/).
19+
1820
- Included basic coverage tests.
1921

2022
- Included import/export of CableDesigns to JSON files.

Project.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,25 @@ DisplayAs = "0b91fe84-8a4c-11e9-3e1d-67c38462b6d6"
1515
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
1616
EzXML = "8f5d6c58-4d21-5cfd-889c-e3ad7ee6a615"
1717
ForceImport = "9dda63f9-cce7-5873-89fa-eccbb2fffcde"
18-
GetDP = "dbfd83e6-7aba-450b-9c2b-93ccd973023a"
1918
Gmsh = "705231aa-382f-11e9-3f0c-b7cb4346fdeb"
2019
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
2120
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
2221
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
2322
LoggingExtras = "e6f89c97-d47a-5376-807f-9c37f3926c36"
2423
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
2524
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
25+
PkgTemplates = "14b8a8f1-9102-5b29-a752-f990bacb7fe1"
2626
PlotlyJS = "f0f68f2c-4968-5e81-91da-67840de0976a"
2727
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
2828
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
2929
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
3030
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
3131
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
3232
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
33+
GetDP = "dbfd83e6-7aba-450b-9c2b-93ccd973023a"
34+
35+
[sources]
36+
GetDP = {url = "https://github.com/Electa-Git/GetDP.jl", rev="main"}
3337

3438
[compat]
3539
CSV = "0.10.15"
@@ -42,7 +46,6 @@ DisplayAs = "0.1.6"
4246
DocStringExtensions = "0.9.3"
4347
EzXML = "1.2.0"
4448
ForceImport = "0.0.3"
45-
GetDP = "0.1.0"
4649
Gmsh = "0.3.1"
4750
HypertextLiteral = "0.9.5"
4851
JSON3 = "1.14.2"
@@ -51,6 +54,7 @@ Logging = "1.11.0"
5154
LoggingExtras = "1.1.0"
5255
Measurements = "2.11.0"
5356
Pkg = "1.11.0"
57+
PkgTemplates = "0.7.56"
5458
PlotlyJS = "0.18.15"
5559
Plots = "1.40.9"
5660
Printf = "1.11.0"
@@ -87,5 +91,4 @@ TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a"
8791

8892
[targets]
8993
dev = ["ArgParse", "BenchmarkTools", "Infiltrator", "JET", "JuliaFormatter", "LocalRegistry", "ProfileView", "Revise", "SymSpellChecker", "TestItemRunner"]
90-
docs = ["Pluto", "PlutoUI", "Changelog", "DisplayAs", "Documenter", "DocumenterCitations", "Literate", "HypertextLiteral", "DataFrames", "Plots", "PlotlyJS", "JSON3"]
9194
test = ["Test", "Coverage"]

0 commit comments

Comments
 (0)