From 57b88ca3859fd09164b50b35f383b3151afbec10 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Thu, 4 Jun 2026 12:28:39 -0400 Subject: [PATCH] ci: use centralized tests.yml@v1 (with num-threads: 2) Convert the bespoke Tests.yml to a tests.yml@v1 caller now that the reusable workflow supports `num-threads` (SciML/.github#43). Preserves the exact version x group matrix and JULIA_NUM_THREADS=2 (needed so the threaded regression tests for #570 actually exercise the multi-thread path) and coverage-directories src,ext. Co-Authored-By: Chris Rackauckas Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/Tests.yml | 41 ++++++++----------------------------- 1 file changed, 8 insertions(+), 33 deletions(-) diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 9a97a50f..267e3d8d 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -18,11 +18,7 @@ concurrency: jobs: tests: - name: "Tests - ${{ matrix.group }} - Julia ${{ matrix.version }}" - permissions: - actions: write - contents: read - runs-on: ubuntu-latest + name: "Tests" strategy: fail-fast: false matrix: @@ -40,31 +36,10 @@ jobs: exclude: - version: "pre" group: "nopre" - steps: - - uses: actions/checkout@v6 - - uses: julia-actions/setup-julia@v3 - with: - version: "${{ matrix.version }}" - - uses: julia-actions/cache@v3 - with: - token: "${{ secrets.GITHUB_TOKEN }}" - - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-runtest@v1 - env: - GROUP: "${{ matrix.group }}" - # Run tests with 2 threads so that threaded regression tests (e.g. the - # @.. thread=true VectorOfArray{SArray} test for issue #570) actually - # exercise FastBroadcast's Polyester-backed multi-thread batch-split - # path. With the default single thread, that path is a no-op and the - # regression is not covered. Mirrors SciML/OrdinaryDiffEq.jl's - # SublibraryCI.yml which passes JULIA_NUM_THREADS on the runtest step. - JULIA_NUM_THREADS: "2" - - uses: julia-actions/julia-processcoverage@v1 - with: - directories: "src,ext" - - uses: codecov/codecov-action@v6 - if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}" - with: - files: lcov.info - token: "${{ secrets.CODECOV_TOKEN }}" - fail_ci_if_error: true + uses: "SciML/.github/.github/workflows/tests.yml@v1" + with: + julia-version: "${{ matrix.version }}" + group: "${{ matrix.group }}" + num-threads: "2" + coverage-directories: "src,ext" + secrets: "inherit"