From 9a73ab62fce82aae5c65305ce45b4deb18956fcf Mon Sep 17 00:00:00 2001 From: Rik Huijzer Date: Wed, 22 Nov 2023 19:28:27 +0100 Subject: [PATCH 1/2] Add integration test --- .github/workflows/IntegrationTest.yml | 47 +++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/IntegrationTest.yml diff --git a/.github/workflows/IntegrationTest.yml b/.github/workflows/IntegrationTest.yml new file mode 100644 index 0000000..0ce254e --- /dev/null +++ b/.github/workflows/IntegrationTest.yml @@ -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 From 90bd4fbd441764acdaf0c29a05a73dcdb622d9cc Mon Sep 17 00:00:00 2001 From: Rik Huijzer Date: Wed, 22 Nov 2023 19:33:55 +0100 Subject: [PATCH 2/2] Trigger CI