CompatHelper: add new compat entry for FileIO in [weakdeps] at version 1, (keep existing compat) #2043
This file contains 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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
- release-* | |
tags: '*' | |
pull_request: | |
jobs: | |
HDF5-system-libs: | |
name: julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} (system libhdf5 + mpich) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
version: | |
- '1.9' | |
- '1.10' | |
- '1' | |
os: | |
- ubuntu-20.04 # required for libhdf5 v1.10.4 support | |
arch: | |
- x64 | |
steps: | |
- name: Install libraries | |
run: | | |
sudo apt-get update | |
sudo apt-get install mpich libhdf5-mpich-dev | |
echo "JULIA_HDF5_PATH=/usr/lib/x86_64-linux-gnu/hdf5/mpich/" >> $GITHUB_ENV | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- uses: julia-actions/julia-buildpkg@latest | |
- name: Configure MPI.jl | |
shell: julia --color=yes {0} | |
run: | | |
@show pwd() | |
include(joinpath(pwd(), "test", "configure_packages.jl")) | |
- uses: julia-actions/julia-runtest@latest | |
HDF5: | |
name: julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1.9' | |
- '1.10' | |
- '1' | |
- 'nightly' | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
arch: | |
- x64 | |
- x86 | |
exclude: | |
- os: macOS-latest | |
arch: x86 | |
- os: ubuntu-latest # excluded because HDF5_jll v1.12 does not support i686 | |
arch: x86 | |
- version: 'nightly' | |
arch: x86 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- uses: julia-actions/julia-buildpkg@latest | |
- uses: julia-actions/julia-runtest@latest | |
env: | |
JULIA_DEBUG: Main | |
- uses: julia-actions/julia-processcoverage@latest | |
- uses: codecov/codecov-action@v4 | |
with: | |
file: lcov.info | |
integration: | |
name: ${{ matrix.package.repo }} - julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1' | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
package: | |
- {user: JuliaIO, repo: MAT.jl} | |
- {user: JuliaIO, repo: JLD.jl} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- uses: julia-actions/julia-buildpkg@latest | |
- name: Clone ${{ matrix.package.repo }} | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }} | |
path: downstream | |
- name: Run ${{ matrix.package.repo }} tests | |
shell: julia --project=downstream {0} | |
run: | | |
using Pkg | |
try | |
# force it to use this PR's version of the package | |
Pkg.develop(PackageSpec[ # resolver may fail with main deps | |
PackageSpec(path="."), | |
PackageSpec(path="./filters/H5Zbitshuffle"), | |
PackageSpec(path="./filters/H5Zblosc"), | |
PackageSpec(path="./filters/H5Zbzip2"), | |
PackageSpec(path="./filters/H5Zlz4"), | |
PackageSpec(path="./filters/H5Zzstd"), | |
]) | |
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 |