Skip to content

Commit 72fce99

Browse files
Merge pull request #604 from ChrisRackauckas-Claude/centralize-tests
ci: centralize Tests.yml (tests.yml@v1 with num-threads: 2)
2 parents 0aa6b50 + 57b88ca commit 72fce99

1 file changed

Lines changed: 8 additions & 33 deletions

File tree

.github/workflows/Tests.yml

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ concurrency:
1818

1919
jobs:
2020
tests:
21-
name: "Tests - ${{ matrix.group }} - Julia ${{ matrix.version }}"
22-
permissions:
23-
actions: write
24-
contents: read
25-
runs-on: ubuntu-latest
21+
name: "Tests"
2622
strategy:
2723
fail-fast: false
2824
matrix:
@@ -40,31 +36,10 @@ jobs:
4036
exclude:
4137
- version: "pre"
4238
group: "nopre"
43-
steps:
44-
- uses: actions/checkout@v6
45-
- uses: julia-actions/setup-julia@v3
46-
with:
47-
version: "${{ matrix.version }}"
48-
- uses: julia-actions/cache@v3
49-
with:
50-
token: "${{ secrets.GITHUB_TOKEN }}"
51-
- uses: julia-actions/julia-buildpkg@v1
52-
- uses: julia-actions/julia-runtest@v1
53-
env:
54-
GROUP: "${{ matrix.group }}"
55-
# Run tests with 2 threads so that threaded regression tests (e.g. the
56-
# @.. thread=true VectorOfArray{SArray} test for issue #570) actually
57-
# exercise FastBroadcast's Polyester-backed multi-thread batch-split
58-
# path. With the default single thread, that path is a no-op and the
59-
# regression is not covered. Mirrors SciML/OrdinaryDiffEq.jl's
60-
# SublibraryCI.yml which passes JULIA_NUM_THREADS on the runtest step.
61-
JULIA_NUM_THREADS: "2"
62-
- uses: julia-actions/julia-processcoverage@v1
63-
with:
64-
directories: "src,ext"
65-
- uses: codecov/codecov-action@v6
66-
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
67-
with:
68-
files: lcov.info
69-
token: "${{ secrets.CODECOV_TOKEN }}"
70-
fail_ci_if_error: true
39+
uses: "SciML/.github/.github/workflows/tests.yml@v1"
40+
with:
41+
julia-version: "${{ matrix.version }}"
42+
group: "${{ matrix.group }}"
43+
num-threads: "2"
44+
coverage-directories: "src,ext"
45+
secrets: "inherit"

0 commit comments

Comments
 (0)