Skip to content
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

Add integration test #200

Merged
merged 2 commits into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/IntegrationTest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: IntegrationTest

on:
pull_request:
push:
branches: [master, main]

jobs:
test:
name: ${{ matrix.package.repo }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- {user: JuliaAI, repo: MLJXGBoostInterface.jl, ref: master}

steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- uses: julia-actions/julia-buildpkg@v1
- name: Clone Downstream
uses: actions/checkout@v2
with:
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
ref: ${{ matrix.package.ref }}
path: downstream
- name: Load this and run the downstream tests
shell: julia --color=yes --project=downstream {0}
run: |
using Pkg
try
Pkg.develop(PackageSpec(path="."))
Pkg.update()
Pkg.test()
catch err
xgboost_is_breaking_version = err isa Pkg.Resolve.ResolverError
if xgboost_is_breaking_version
@info "Not compatible with this release." exception=err
success = 0
exit(success)
else
rethrow()
end
end
Loading