From df6676a5b54311a56f85280c09ab7fa68c0bddec Mon Sep 17 00:00:00 2001 From: "Viral B. Shah" Date: Mon, 1 Sep 2025 22:51:45 -0700 Subject: [PATCH 1/2] Refactor GitHub Actions workflow for tests --- .github/workflows/Tests.yml | 68 +++++++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 21 deletions(-) diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 877a850d..b20fd283 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -1,32 +1,58 @@ -name: "Tests" - +name: Tests on: - pull_request: - branches: - - master push: - branches: - - master + branches: [master] + tags: ['*'] + pull_request: + workflow_dispatch: +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} ${{ matrix.arch }} + runs-on: ${{ matrix.os }} -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }} + permissions: + actions: write + contents: read + + env: + JULIA_NUM_THREADS: 'auto' -jobs: - tests: - name: "Tests" strategy: fail-fast: false matrix: version: - - "1" - - "lts" - - "pre" + - '1' # Current stable version os: - ubuntu-latest - - macos-latest - windows-latest - uses: "SciML/.github/.github/workflows/tests.yml@v1" - with: - julia-version: "${{ matrix.version }}" - secrets: "inherit" + - macOS-13 + arch: + - x64 + include: + - os: macOS-latest + arch: aarch64 + version: '1' + - os: ubuntu-latest + arch: x86 + version: '1' + - os: ubuntu-latest + arch: x64 + version: 'min' + - os: ubuntu-latest + arch: x64 + version: 'pre' + + steps: + - uses: actions/checkout@v5 + - uses: julia-actions/setup-julia@v2 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v5 + with: + files: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} From 8e34c2321ce1b4d55f6916c12a5058a2d566d1e2 Mon Sep 17 00:00:00 2001 From: "Viral B. Shah" Date: Mon, 1 Sep 2025 22:55:28 -0700 Subject: [PATCH 2/2] Update Tests.yml --- .github/workflows/Tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index b20fd283..4e472fc2 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -37,7 +37,7 @@ jobs: version: '1' - os: ubuntu-latest arch: x64 - version: 'min' + version: 'lts' - os: ubuntu-latest arch: x64 version: 'pre'