Skip to content

Proposed V16 README and index page updates #1162

Proposed V16 README and index page updates

Proposed V16 README and index page updates #1162

Workflow file for this run

name: "Tests"
on:
pull_request:
paths-ignore:
- 'docs/**'
push:
branches:
- master
paths-ignore:
- 'docs/**'
concurrency:
# Skip intermediate builds: always, but for the master branch.
# Cancel intermediate builds: always, but for the master branch.
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
outputs:
deps-hash: ${{ steps.deps-hash.outputs.hash }}
steps:
- uses: actions/checkout@v6
- name: "Compute dependency hash"
id: deps-hash
run: echo "hash=${{ hashFiles('Project.toml') }}" >> "$GITHUB_OUTPUT"
- 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-v2;os=${{ runner.os }};julia=${{ matrix.version }};deps=${{ steps.deps-hash.outputs.hash }}"
- 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-v2;os=${{ runner.os }};julia=${{ matrix.version }};deps=${{ steps.deps-hash.outputs.hash }}"
tests:

Check failure on line 78 in .github/workflows/Test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/Test.yml

Invalid workflow file

You have an error in your yaml syntax on line 78
name: "Tests"
needs: prewarm-cache
strategy:
fail-fast: false
matrix:
version:
- "1"
- "lts"
- "pre"
group:
- Modeling
- Simulation
- Hybrid
- Misc
- Spatial
uses: "SciML/.github/.github/workflows/tests.yml@v1"
with:
julia-version: "${{ matrix.version }}"
group: "${{ matrix.group }}"
coverage: false
secrets: "inherit"
- 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-v2;os=${{ runner.os }};julia=${{ matrix.version }};deps=${{ needs.prewarm-cache.outputs.deps-hash }}"
- 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