Repository navigation
Modernize CI and Julia setup - #297
Merged
Merged
Conversation
Bring the CI setup in line with ChainRulesCore (JuliaDiff/ChainRulesCore.jl#715) and ChainRules (JuliaDiff/ChainRules.jl#850): - Replace CompatHelper with Dependabot's `julia` ecosystem - Add a `typos` spell check workflow - Test `pre` on Linux with allowed failures instead of a separate JuliaNightly workflow, and upload coverage from the CI jobs - Build the docs in the CI workflow on Julia 1; the separate Documenter workflow only ran on pushes to the non-existent `master` branch - Run IntegrationTest on `main`, add cache and permissions, and test downstream packages in a temporary environment - Add concurrency and permissions everywhere and update action versions (no more `@latest`) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring the package setup in line with ChainRulesCore (JuliaDiff/ChainRulesCore.jl#717): - Require Julia 1.10 (the current LTS) and drop the obsolete version checks in the tests - Remove the Compat dependency (`only` is in Base since Julia 1.4) - Add compat entries for the stdlibs - Move the test dependencies to test/Project.toml and make the test and docs environments part of a workspace, using [sources] instead of `Pkg.develop` and a checked-in docs/Manifest.toml - Update Documenter to v1 and fix the doctests, which were silently failing with Documenter 0.27: ignore `Test Summary` tables (they differ between `makedocs` and `doctest` and across Julia versions) and don't run the deliberately failing `test_rrule` example, whose output is random - Set `devbranch = "main"` in `deploydocs` Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #297 +/- ##
==========================================
- Coverage 95.62% 93.80% -1.83%
==========================================
Files 12 12
Lines 343 355 +12
==========================================
+ Hits 328 333 +5
- Misses 15 22 +7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Since JuliaLang/julia@d934b03 (1.13.0-DEV.300) `Test.eval_test` is replaced by `eval_test_comparison` and `eval_test_function`, so importing it unconditionally warns that the imported binding was undeclared. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the CI and package setup in line with ChainRulesCore (JuliaDiff/ChainRulesCore.jl#715, JuliaDiff/ChainRulesCore.jl#717) and ChainRules (JuliaDiff/ChainRules.jl#850).
CI
juliaecosystemtyposspell check workflow (and fix the typos it finds)ltsand1on Linux, macOS and Windows, native arch), and testpreon Linux with allowed failures instead of in the separate JuliaNightly workflowmasterbranch, so the dev docs were never deployed frommainmain(wasmaster), add cache and permissions, and test the downstream packages in a temporary environment@latest/@v1/@v2pins)Julia setup
onlyis in Base) and add compat entries for stdlibstest/Project.tomland set up a workspace with the test and docs environments, using[sources]instead ofPkg.developand the checked-indocs/Manifest.tomlTest Summarytables, which differ betweenmakedocsanddoctest()and across Julia versions, and the deliberately failingtest_rruleexample (random output) is no longer doctestedTest.eval_teston Julia < 1.13: since JuliaLang/julia@d934b03 (1.13.0-DEV.300) it is replaced byeval_test_comparisonandeval_test_function, and the unconditional import printed "WARNING: Imported binding Test.eval_test was undeclared at import time". The import is still required on older versions, where the code generated by@test_msgcallseval_testunqualifiedLocal checks
Pkg.test()passes on Julia 1.10.12 and 1.13.1, without theeval_testwarning on 1.13docs/make.jlanddoctest(ChainRulesTestUtils)pass on Julia 1.13.1;doctestalso passes on 1.10.12typosreports nothing🤖 Generated with Claude Code