Skip to content

Batched pushforward, pullback and hvp #328

Batched pushforward, pullback and hvp

Batched pushforward, pullback and hvp #328

Workflow file for this run

name: Test
on:
push:
branches:
- main
tags: ['*']
pull_request:
workflow_dispatch:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test-DI:
name: DI (${{ matrix.group }}) - ${{ matrix.version }}
runs-on: ubuntu-latest
timeout-minutes: 60
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
actions: write
contents: read
strategy:
fail-fast: false
matrix:
version:
- '1'
- '1.6'
- '~1.11.0-0'
group:
- Formalities
- Internals
- Single/Diffractor
- Single/Enzyme
- Single/FastDifferentiation
- Single/FiniteDiff
- Single/FiniteDifferences
- Single/ForwardDiff
- Single/PolyesterForwardDiff
- Single/ReverseDiff
- Single/Symbolics
- Single/Tapir
- Single/Tracker
- Single/Zygote
- Double/ChainRulesCore-Zygote
- Double/Enzyme-ForwardDiff
- Double/ForwardDiff-Zygote
- Double/ReverseDiff-Zygote
exclude:
- version: '1.6'
group: Formalities
- version: '~1.11.0-0'
group: Formalities
- version: '1.6'
group: Single/Diffractor
- version: '1.6'
group: Single/Enzyme
- version: '~1.11.0-0'
group: Single/Enzyme
- version: '1.6'
group: Single/FiniteDiff
- version: '1.6'
group: Single/FastDifferentiation
- version: '1.6'
group: Single/PolyesterForwardDiff
- version: '1.6'
group: Single/Symbolics
- version: '1.6'
group: Single/Tapir
- version: '~1.11.0-0'
group: Single/Tapir
- version: '~1.11.0-0'
group: Double/ChainRulesCore-Zygote
- version: '1.6'
group: Double/Enzyme-ForwardDiff
- version: '~1.11.0-0'
group: Double/Enzyme-ForwardDiff
- version: '1.6'
group: Double/ReverseDiff-Zygote
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: x64
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- name: Update registry
run: julia -e 'using Pkg; Pkg.Registry.update()'
- uses: julia-actions/julia-runtest@v1
with:
project: ./DifferentiationInterface
env:
JULIA_DI_TEST_GROUP: ${{ matrix.group }}
- uses: julia-actions/julia-processcoverage@v1
with:
directories: ./DifferentiationInterface/src,./DifferentiationInterface/ext,./DifferentiationInterface/test
- uses: codecov/codecov-action@v4
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
test-DIT:
name: DIT (${{ matrix.group }}) - ${{ matrix.version }}
runs-on: ubuntu-latest
timeout-minutes: 60
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
actions: write
contents: read
strategy:
fail-fast: false
matrix:
version:
- '1'
- '1.6'
- '~1.11.0-0'
group:
- Formalities
- Zero
- ForwardDiff
exclude:
- version: '1.6'
group: Formalities
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: x64
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- name: Dev dependencies (temporary)
run: julia --project='./DifferentiationInterfaceTest' -e '
using Pkg;
Pkg.Registry.update();
Pkg.develop(PackageSpec(path="./DifferentiationInterface"));
Pkg.instantiate();'
- uses: julia-actions/julia-runtest@v1
with:
project: ./DifferentiationInterfaceTest
env:
JULIA_DI_TEST_GROUP: ${{ matrix.group }}
- uses: julia-actions/julia-processcoverage@v1
with:
directories: ./DifferentiationInterfaceTest/src,./DifferentiationInterfaceTest/ext,./DifferentiationInterfaceTest/test
- uses: codecov/codecov-action@v4
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true