From 690c6d6f29986f312d4b846f3efdbd99deff476f Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Tue, 16 Dec 2025 18:04:58 +0530 Subject: [PATCH 1/2] ci: run MTK tests in CI --- .github/workflows/MTKDownstream.yml | 77 +++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 .github/workflows/MTKDownstream.yml diff --git a/.github/workflows/MTKDownstream.yml b/.github/workflows/MTKDownstream.yml new file mode 100644 index 0000000..c3fe1f2 --- /dev/null +++ b/.github/workflows/MTKDownstream.yml @@ -0,0 +1,77 @@ +name: "Test ModelingToolkit" + +on: + pull_request: + branches: + - main + paths-ignore: + - 'docs/**' + push: + branches: + - main + paths-ignore: + - 'docs/**' + - 'benchmark/**' + +concurrency: + # Skip intermediate builds: always, but for the master branch. + # Cancel intermediate builds: always, but for the master branch. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} + +jobs: + tests: + name: "Tests" + strategy: + fail-fast: false + matrix: + version: + - "1" + - "lts" + - "pre" + group: + - InterfaceI + - InterfaceII + - Initialization + - SymbolicIndexingInterface + - Extensions + - Downstream + - FMI + runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }} + steps: + - uses: actions/checkout@v6 + - name: "Setup Julia ${{ matrix.version }}" + uses: julia-actions/setup-julia@v2 + with: + version: "${{ matrix.version }}" + arch: "${{ runner.arch }}" + - uses: julia-actions/cache@v2 + if: ${{ vars.USE_SELF_HOSTED != 'true' }} + with: + token: "${{ secrets.GITHUB_TOKEN }}" + - name: Clone ModelingToolkit + uses: actions/checkout@v6 + with: + repository: SciML/ModelingToolkit.jl + path: downstream + - name: "Test ModelingToolkit/${{ matrix.group }}" + env: + GROUP: ${{ matrix.group }} + JULIA_PKG_PRECOMPILE_AUTO: 0 + shell: julia --color=yes --check-bounds=yes --depwarn=yes --project=downstream {0} + run: | + using Pkg + @info "dev StateSelection.jl" + Pkg.develop(; path = ".") + @info "dev ModelingToolkitTearing.jl" + Pkg.develop(; path = "lib/ModelingToolkitTearing") + Pkg.test("ModelingToolkit") + - uses: julia-actions/julia-processcoverage@v1 + with: + directories: "src,lib/ModelingToolkitTearing/src" + - name: "Report Coverage with Codecov" + uses: codecov/codecov-action@v5 + with: + files: lcov.info + token: "${{ secrets.CODECOV_TOKEN }}" + fail_ci_if_error: true From b647cc4973e4fb023c73d54b7041db1e24374bd3 Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Tue, 16 Dec 2025 18:28:16 +0530 Subject: [PATCH 2/2] debug --- .github/workflows/MTKDownstream.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/MTKDownstream.yml b/.github/workflows/MTKDownstream.yml index c3fe1f2..f27a884 100644 --- a/.github/workflows/MTKDownstream.yml +++ b/.github/workflows/MTKDownstream.yml @@ -61,6 +61,8 @@ jobs: shell: julia --color=yes --check-bounds=yes --depwarn=yes --project=downstream {0} run: | using Pkg + Pkg.status(; mode = Pkg.PKGMODE_MANIFEST) + @info pwd() @info "dev StateSelection.jl" Pkg.develop(; path = ".") @info "dev ModelingToolkitTearing.jl"