Skip to content

Commit a78cf3a

Browse files
Merge pull request #3953 from SciML/as/su-v4
refactor: update to SymbolicUtils@4 and Symbolics@7
2 parents 86a3a53 + 49115cb commit a78cf3a

File tree

226 files changed

+14363
-19138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+14363
-19138
lines changed

.github/workflows/Documentation.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- master
77
- v10
8+
- 'as/su-v4'
89
tags: '*'
910
pull_request:
1011

@@ -24,7 +25,7 @@ jobs:
2425
version: 'lts'
2526
- run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
2627
- name: Install dependencies
27-
run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
28+
run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ -e 'using Pkg; Pkg.develop([PackageSpec(path=pwd()), PackageSpec(path=joinpath(pwd(), "lib", "ModelingToolkitBase"))]); Pkg.instantiate()'
2829
- name: Build and deploy
2930
env:
3031
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token

.github/workflows/Downstream.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
using Pkg
6262
try
6363
# force it to use this PR's version of the package
64+
Pkg.develop(PackageSpec(path="./lib/ModelingToolkitBase")) # resolver may fail with main deps
6465
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
6566
Pkg.update()
6667
Pkg.test(coverage=true) # resolver may fail with test time deps

.github/workflows/FormatCheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ on:
1111
jobs:
1212
format-check:
1313
name: "Format Check"
14-
uses: "SciML/.github/.github/workflows/format-suggestions-on-pr.yml@v1"
14+
uses: "SciML/.github/.github/workflows/format-check.yml@v1"

.github/workflows/Tests.yml

Lines changed: 78 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- master
77
- 'release-'
8-
- v10
8+
- as/su-v4
99
paths-ignore:
1010
- 'docs/**'
1111
push:
@@ -31,22 +31,80 @@ jobs:
3131
- "1"
3232
- "lts"
3333
- "pre"
34-
group:
35-
- InterfaceI
36-
- InterfaceII
37-
- Initialization
38-
- SymbolicIndexingInterface
39-
- Extended
40-
- Extensions
41-
- Downstream
42-
- RegressionI
43-
- FMI
44-
uses: "SciML/.github/.github/workflows/tests.yml@master"
45-
with:
46-
julia-version: "${{ matrix.version }}"
47-
group: "${{ matrix.group }}"
48-
# Disable cache for self-hosted runners since they persist between runs
49-
# Set USE_SELF_HOSTED repository variable to 'true' when using self-hosted runners
50-
self-hosted: ${{ vars.USE_SELF_HOSTED == 'true' }}
51-
cache: ${{ vars.USE_SELF_HOSTED != 'true' }}
52-
secrets: "inherit"
34+
pkggroup:
35+
- ModelingToolkit/InterfaceI
36+
- ModelingToolkit/InterfaceII
37+
- ModelingToolkit/Initialization
38+
- ModelingToolkit/SymbolicIndexingInterface
39+
- ModelingToolkit/Extensions
40+
- ModelingToolkit/Downstream
41+
- ModelingToolkit/FMI
42+
- ModelingToolkitBase/InterfaceI
43+
- ModelingToolkitBase/InterfaceII
44+
- ModelingToolkitBase/Initialization
45+
- ModelingToolkitBase/SymbolicIndexingInterface
46+
- ModelingToolkitBase/Extended
47+
- ModelingToolkitBase/RegressionI
48+
- ModelingToolkitBase/Extensions
49+
- SciCompDSL/All
50+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
51+
steps:
52+
- uses: actions/checkout@v5
53+
- name: "Setup Julia ${{ matrix.version }}"
54+
uses: julia-actions/setup-julia@v2
55+
with:
56+
version: "${{ matrix.version }}"
57+
arch: "${{ runner.arch }}"
58+
- uses: julia-actions/cache@v2
59+
if: ${{ vars.USE_SELF_HOSTED != 'true' }}
60+
with:
61+
token: "${{ secrets.GITHUB_TOKEN }}"
62+
- name: "Test ${{ matrix.pkggroup }}"
63+
env:
64+
PKGGROUP: ${{ matrix.pkggroup }}
65+
JULIA_PKG_PRECOMPILE_AUTO: 0
66+
shell: julia --color=yes --check-bounds=yes --depwarn=yes {0}
67+
run: |
68+
using Pkg
69+
const PKGGROUP = ENV["PKGGROUP"]
70+
const PKG = split(PKGGROUP, "/")[1]
71+
const GROUP = split(PKGGROUP, "/")[2]
72+
ENV["GROUP"] = GROUP
73+
74+
if PKG == "ModelingToolkitBase"
75+
@info "Testing ModelingToolkitBase"
76+
Pkg.activate("lib/ModelingToolkitBase")
77+
@info "`dev`ing SciCompDSL"
78+
Pkg.develop(; path = "lib/SciCompDSL")
79+
@info "Running tests" GROUP
80+
Pkg.test()
81+
elseif PKG == "ModelingToolkit"
82+
@info "Testing ModelingToolkit"
83+
Pkg.activate(".")
84+
@info "`dev`ing ModelingToolkitBase"
85+
Pkg.develop(; path = "lib/ModelingToolkitBase")
86+
@info "`dev`ing SciCompDSL"
87+
Pkg.develop(; path = "lib/SciCompDSL")
88+
@info "Running tests" GROUP
89+
Pkg.test()
90+
elseif PKG == "SciCompDSL"
91+
@info "Testing SciCompDSL"
92+
Pkg.activate("lib/SciCompDSL")
93+
@info "`dev`ing ModelingToolkitBase"
94+
Pkg.develop(; path = "lib/ModelingToolkitBase")
95+
@info "`dev`ing ModelingToolkit"
96+
Pkg.develop(; path = ".")
97+
@info "Running tests" GROUP
98+
Pkg.test()
99+
else
100+
error("Invalid package $PKG")
101+
end
102+
- uses: julia-actions/julia-processcoverage@v1
103+
with:
104+
directories: "src,ext,lib/ModelingToolkitBase/src,lib/ModelingToolkitBase/ext"
105+
- name: "Report Coverage with Codecov"
106+
uses: codecov/codecov-action@v5
107+
with:
108+
files: lcov.info
109+
token: "${{ secrets.CODECOV_TOKEN }}"
110+
fail_ci_if_error: true

LICENSE.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,3 @@ The ModelingToolkit.jl package is licensed under the MIT "Expat" License:
3232
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3333
>
3434
> SOFTWARE.
35-
36-
The code in `src/structural_transformation/bipartite_tearing/modia_tearing.jl`,
37-
which is from the [Modia.jl](https://github.com/ModiaSim/Modia.jl) project, is
38-
licensed as follows:
39-
40-
MIT License
41-
42-
Copyright (c) 2017-2018 ModiaSim developers
43-
44-
Permission is hereby granted, free of charge, to any person obtaining a copy
45-
of this software and associated documentation files (the "Software"), to deal
46-
in the Software without restriction, including without limitation the rights
47-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
48-
copies of the Software, and to permit persons to whom the Software is
49-
furnished to do so, subject to the following conditions:
50-
51-
The above copyright notice and this permission notice shall be included in all
52-
copies or substantial portions of the Software.
53-
54-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
55-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
56-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
57-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
58-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
59-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
60-
SOFTWARE.

0 commit comments

Comments
 (0)