Skip to content

Commit

Permalink
Update Downstream.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sumiya11 authored Jan 2, 2025
1 parent d8cb0c8 commit 5adf767
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,37 @@ on:
pull_request:

jobs:
test-RUR:
name: test-RUR
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: 1
arch: x64
- uses: julia-actions/julia-buildpkg@latest
- name: Clone Downstream
run: git clone https://gitlab.inria.fr/newrur/code
- name: Load this and run the downstream tests
shell: julia --color=yes --project=code/Julia/RationalUnivariateRepresentation.jl {0}
run: |
using Pkg
try
# force it to use this PR's version of the package
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
Pkg.update()
Pkg.test() # 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
end
test:
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 5adf767

Please sign in to comment.