From 3a33010e9a83df13f06da32ffa999bd45d38c103 Mon Sep 17 00:00:00 2001 From: Samuel-AMAP Date: Mon, 9 Dec 2024 16:51:30 +0100 Subject: [PATCH 1/4] CI downstream yml --- .github/workflows/Integration.yml | 70 +++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/Integration.yml diff --git a/.github/workflows/Integration.yml b/.github/workflows/Integration.yml new file mode 100644 index 0000000..3c6faa3 --- /dev/null +++ b/.github/workflows/Integration.yml @@ -0,0 +1,70 @@ +name: Integration +on: + push: + branches: + - main + tags: "*" + pull_request: + workflow_dispatch: +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + timeout-minutes: 60 + permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created + actions: write + contents: read + strategy: + fail-fast: false + matrix: + version: + - "1.9" + - "1" + os: + - ubuntu-latest + - macOS-latest + - windows-latest + arch: + - x64 + package: + - {user: PalmStudio, repo: XPalm.jl} + - {user: VEZY, repo: PlantGeom.jl} + - {user: VEZY, repo: PlantSimEngine.jl} + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: julia-actions/julia-buildpkg@v1 + - name: Clone Downstream + uses: actions/checkout@v4 + with: + repository: ${{ matrix.package.user }}/${{ matrix.package.repo }} + path: downstream + - name: Load this and run the downstream tests + shell: julia --color=yes --project=downstream --depwarn=yes {0} + run: | + using Pkg + try + # force it to use this PR's version of the package + Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps + Pkg.update() + Pkg.test() # resolver may fail with test time deps + catch err + err isa Pkg.Resolve.ResolverError || rethrow() + # If we can't resolve that means this is incompatible by SemVer and this is fine + # It means we marked this as a breaking change, so we don't need to worry about + # Mistakenly introducing a breaking change, as we have intentionally made one + @info "Testing with an incompatible downstream release as a breaking change was introduced. Expected failure." exception=err + exit(0) # Exit immediately, as a success + end + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v5 + with: + files: lcov.info \ No newline at end of file From a3cfb5fcc8ac73c74fbfc74ec06255e534ab6e82 Mon Sep 17 00:00:00 2001 From: Samuel-AMAP Date: Wed, 11 Dec 2024 10:37:59 +0100 Subject: [PATCH 2/4] Remove XPalm (temporarily) from downstream tests --- .github/workflows/Integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Integration.yml b/.github/workflows/Integration.yml index 3c6faa3..a490a43 100644 --- a/.github/workflows/Integration.yml +++ b/.github/workflows/Integration.yml @@ -32,7 +32,7 @@ jobs: arch: - x64 package: - - {user: PalmStudio, repo: XPalm.jl} + #- {user: PalmStudio, repo: XPalm.jl} - {user: VEZY, repo: PlantGeom.jl} - {user: VEZY, repo: PlantSimEngine.jl} steps: From 87a058102ac470f5103af16af4227c1ca9f5cebc Mon Sep 17 00:00:00 2001 From: Samuel-AMAP Date: Wed, 11 Dec 2024 11:41:41 +0100 Subject: [PATCH 3/4] Extend size threshold for generated html size to 300 KB (up from 200, 300 is also PlantSimEngine's explicit threshold) --- docs/make.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/make.jl b/docs/make.jl index dc85907..d1d6044 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -11,7 +11,8 @@ makedocs(; format=Documenter.HTML(; prettyurls=get(ENV, "CI", "false") == "true", canonical="https://VEZY.github.io/MultiScaleTreeGraph.jl", - assets=String[] + assets=String[], + size_threshold=300000 ), pages=[ "Home" => "index.md", From 4020006128738ea3c61fe74321c7d6f40d808775 Mon Sep 17 00:00:00 2001 From: Samuel-AMAP Date: Tue, 11 Feb 2025 15:14:34 +0100 Subject: [PATCH 4/4] Reintroduce XPalm in downstream tests, now that it is registered --- .github/workflows/Integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Integration.yml b/.github/workflows/Integration.yml index a490a43..3c6faa3 100644 --- a/.github/workflows/Integration.yml +++ b/.github/workflows/Integration.yml @@ -32,7 +32,7 @@ jobs: arch: - x64 package: - #- {user: PalmStudio, repo: XPalm.jl} + - {user: PalmStudio, repo: XPalm.jl} - {user: VEZY, repo: PlantGeom.jl} - {user: VEZY, repo: PlantSimEngine.jl} steps: