diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 0000000..d463fbf --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,12 @@ +ignore: + - "ext/amdgpu_preconditioner.jl" + - "ext/amdgpu_wrapper.jl" + - "ext/ExaPFAMDGPUExt.jl" +coverage: + status: + project: + default: + informational: true + patch: + default: + informational: true \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a4b23dd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: + - main + tags: '*' + pull_request: + types: [opened, synchronize, reopened] + schedule: + - cron: '0 0 * * 0' + +jobs: + test-github-cpuonly: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-22.04] + julia-version: ['1.9'] + julia-arch: [x64] + + steps: + - uses: actions/checkout@v3 + - uses: julia-actions/setup-julia@latest + with: + version: ${{ matrix.julia-version }} + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@latest + - uses: codecov/codecov-action@v2 + with: + file: lcov.info diff --git a/README.md b/README.md index 983f567..24baed2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ # DiffKrylov +[![][build-latest-img]][build-url] [![][codecov-latest-img]][codecov-latest-url] DiffKrylov provides a differentiable API for [Krylov.jl](https://github.com/JuliaSmoothOptimizers/Krylov.jl) using [ForwardDiff.jl](https://github.com/JuliaDiff/ForwardDiff.jl). In the future, we will also support Enzyme and its reverse mode. + +[codecov-latest-img]: https://codecov.io/gh/JuliaSmoothOptimizers/DiffKrylov.jl/branch/main/graphs/badge.svg?branch=main +[codecov-latest-url]: https://codecov.io/github/JuliaSmoothOptimizers/DiffKrylov.jl?branch=main + +[build-url]: https://github.com/JuliaSmoothOptimizers/DiffKrylov.jl/actions?query=workflow +[build-latest-img]: https://github.com/JuliaSmoothOptimizers/DiffKrylov.jl/workflows/Run%20tests/badge.svg?branch=main