Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 98 additions & 5 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,62 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

permissions:
actions: write
contents: read

jobs:
prewarm-cache:
name: "Prewarm Cache"
strategy:
fail-fast: false
matrix:
version:
- "1"
- "lts"
- "pre"
runs-on: 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 }}"

- name: "Restore Julia cache"
id: cache-restore
uses: actions/cache/restore@v4
with:
path: |
~/.julia/artifacts
~/.julia/packages
~/.julia/registries
~/.julia/compiled
~/.julia/scratchspaces
~/.julia/logs
key: "tests-cache-v1;os=${{ runner.os }};julia=${{ matrix.version }};deps=${{ hashFiles('Project.toml', 'Manifest.toml', 'test/Manifest.toml') }}"

- name: "Build package"
uses: julia-actions/julia-buildpkg@v1

- name: "Save Julia cache"
if: steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: |
~/.julia/artifacts
~/.julia/packages
~/.julia/registries
~/.julia/compiled
~/.julia/scratchspaces
~/.julia/logs
key: "tests-cache-v1;os=${{ runner.os }};julia=${{ matrix.version }};deps=${{ hashFiles('Project.toml', 'Manifest.toml', 'test/Manifest.toml') }}"

tests:
name: "Tests"
needs: prewarm-cache
strategy:
fail-fast: false
matrix:
Expand All @@ -32,8 +85,48 @@ jobs:
- Hybrid
- Misc
- Spatial
uses: "SciML/.github/.github/workflows/tests.yml@v1"
with:
julia-version: "${{ matrix.version }}"
group: "${{ matrix.group }}"
secrets: "inherit"
runs-on: 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 }}"

- name: "Restore Julia cache"
uses: actions/cache/restore@v4
with:
path: |
~/.julia/artifacts
~/.julia/packages
~/.julia/registries
~/.julia/compiled
~/.julia/scratchspaces
~/.julia/logs
key: "tests-cache-v1;os=${{ runner.os }};julia=${{ matrix.version }};deps=${{ hashFiles('Project.toml', 'Manifest.toml', 'test/Manifest.toml') }}"

- name: "Build package"
uses: julia-actions/julia-buildpkg@v1

- name: "Run tests on ubuntu-latest with Julia v${{ matrix.version }} - ${{ matrix.group }}"
uses: julia-actions/julia-runtest@v1
with:
project: "@."
depwarn: "yes"
coverage: "true"
env:
GROUP: "${{ matrix.group }}"

- uses: julia-actions/julia-processcoverage@v1
with:
directories: "src,ext"

- name: "Report Coverage with Codecov"
uses: codecov/codecov-action@v5
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
with:
files: lcov.info
token: "${{ secrets.CODECOV_TOKEN }}"
fail_ci_if_error: true
4 changes: 3 additions & 1 deletion .github/workflows/TestExtensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
- name: "Cache Julia packages"
uses: julia-actions/cache@v2
with:
include-matrix: "false"
cache-name: "extensions-cache;julia=${{ matrix.version }}"
token: "${{ secrets.GITHUB_TOKEN }}"

- name: "Build main package"
Expand Down Expand Up @@ -63,7 +65,7 @@ jobs:

- name: "Report Coverage with Codecov"
uses: codecov/codecov-action@v5
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
with:
files: lcov.info
token: "${{ secrets.CODECOV_TOKEN }}"
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
[![API Master (for developers](https://img.shields.io/badge/API-master_branch_(for_devs)-blue.svg)](https://docs.sciml.ai/Catalyst/dev/api/)
<!--[![Join the chat at https://julialang.zulipchat.com #sciml-bridged](https://img.shields.io/static/v1?label=Zulip&message=chat&color=9558b2&labelColor=389826)](https://julialang.zulipchat.com/#narrow/stream/279055-sciml-bridged)-->

[![Build Status](https://github.com/SciML/Catalyst.jl/workflows/CI/badge.svg)](https://github.com/SciML/Catalyst.jl/actions?query=workflow%3ACI)
[![codecov.io](https://codecov.io/gh/SciML/Catalyst.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/SciML/Catalyst.jl)
[![Coverage Status](https://coveralls.io/repos/github/SciML/Catalyst.jl/badge.svg?branch=master)](https://coveralls.io/github/SciML/Catalyst.jl?branch=master)
[![Tests](https://github.com/SciML/Catalyst.jl/actions/workflows/Test.yml/badge.svg)](https://github.com/SciML/Catalyst.jl/actions/workflows/Test.yml)
[![Extensions Tests](https://github.com/SciML/Catalyst.jl/actions/workflows/TestExtensions.yml/badge.svg)](https://github.com/SciML/Catalyst.jl/actions/workflows/TestExtensions.yml)
[![Documentation](https://github.com/SciML/Catalyst.jl/actions/workflows/Documentation.yml/badge.svg)](https://github.com/SciML/Catalyst.jl/actions/workflows/Documentation.yml)
[![Codecov](https://codecov.io/gh/SciML/Catalyst.jl/graph/badge.svg?branch=master)](https://codecov.io/gh/SciML/Catalyst.jl)

[![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac)
[![SciML Code Style](https://img.shields.io/static/v1?label=code%20style&message=SciML&color=9558b2&labelColor=389826)](https://github.com/SciML/SciMLStyle)
Expand Down