Repository navigation
Update badges and CI #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
devmotion
wants to merge
11
commits into
main
Choose a base branch
from
dw/badges
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update badges and CI #247
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
33d74ca
Update badges
devmotion d9ea5ca
Remove Travis config
devmotion b457f9b
Remove docs/Manifest.toml
devmotion 3b5e62e
Update .gitignore
devmotion 9ab1898
Update CI
devmotion 94d8598
Update .github/workflows/Documenter.yml
devmotion 8ce3903
Update .github/workflows/Documenter.yml
devmotion d091445
Update .github/workflows/CI.yml
devmotion f59b178
Merge branch 'main' into dw/badges
devmotion 959dfd6
Modernize CI setup
devmotion b38daad
Keep the test matrix close to the original
devmotion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,54 +1,65 @@ | ||
| name: IntegrationTest | ||
| on: | ||
| push: | ||
| branches: [master] | ||
| branches: [main] | ||
| tags: [v*] | ||
| pull_request: | ||
|
|
||
| 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/') }} | ||
|
|
||
| # needed to allow julia-actions/cache to delete old caches that it has created | ||
| permissions: | ||
| actions: write | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| name: ${{ matrix.package.repo }} | ||
| name: ${{ matrix.package.name }} | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| julia-version: [1] | ||
| os: [ubuntu-latest] | ||
| package: | ||
| - {user: JuliaDiff, repo: ChainRulesTestUtils.jl} | ||
| - {user: JuliaDiff, repo: ChainRules.jl} | ||
| - {user: JuliaMath, repo: SpecialFunctions.jl} | ||
| - {user: invenia, repo: BlockDiagonals.jl} | ||
| - {user: invenia, repo: PDMatsExtras.jl} | ||
| - {user: PumasAI, repo: DataInterpolations.jl} | ||
| - {user: JuliaDiff, name: ChainRulesTestUtils} | ||
| - {user: JuliaDiff, name: ChainRules} | ||
| - {user: JuliaMath, name: SpecialFunctions} | ||
| - {user: invenia, name: BlockDiagonals} | ||
| - {user: invenia, name: PDMatsExtras} | ||
| - {user: PumasAI, name: DataInterpolations} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: julia-actions/setup-julia@v2 | ||
| - uses: actions/checkout@v7 | ||
| - uses: julia-actions/setup-julia@v3 | ||
| with: | ||
| version: ${{ matrix.julia-version }} | ||
| arch: x64 | ||
| - uses: julia-actions/julia-buildpkg@latest | ||
| - uses: julia-actions/cache@v3 | ||
| - uses: julia-actions/julia-buildpkg@v1 | ||
| - name: Clone Downstream | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| repository: ${{ matrix.package.user }}/${{ matrix.package.repo }} | ||
| repository: ${{ matrix.package.user }}/${{ matrix.package.name }}.jl | ||
| path: downstream | ||
| - name: Load this and run the downstream tests | ||
| shell: julia --project=downstream {0} | ||
| shell: julia --project=@temp {0} | ||
| run: | | ||
| using Pkg | ||
| try | ||
| # force it to use this PR's version of the package | ||
| Pkg.develop(PackageSpec(path=".")) # ResolverError with main deps may be thrown here | ||
| Pkg.develop([PackageSpec(path="."), PackageSpec(path="downstream")]) # resolver may fail with main deps | ||
| Pkg.update() | ||
| Pkg.test() # ResolverError with test deps may be thrown here (before test process starts) | ||
| Pkg.test("${{ matrix.package.name }}") # resolver may fail with test time deps | ||
| catch err | ||
| err isa Pkg.Resolve.ResolverError || rethrow() | ||
| # If we can't resolve that means this is incompatible by SemVer and this is fine | ||
| # It means we marked this as a breaking change, so we don't need to worry about | ||
| # Mistakenly introducing a breaking change, as we have intentionally made one | ||
|
|
||
| @info "Not compatible with this release. No problem." exception=err | ||
| exit(0) # Exit immediately, as a success | ||
| exit(0) # Exit immediately, as a success | ||
| end |
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| *.jl.cov | ||
| *.jl.*.cov | ||
| *.jl.mem | ||
| /Manifest.toml | ||
| Manifest.toml | ||
| dev/ | ||
|
|
||
| # Docs: | ||
|
|
||
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keeping the docs manifest around is useful to avoid breaking doctests if packages we use change their string represetations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO such doctest failures should be avoided by using doctest filters or changing to more stable tests, since string representations may change even in non-breaking releases.