Skip to content

Clean up: Bug fixes, correctness guards, performance and test coverage from an in-depth review #866

Clean up: Bug fixes, correctness guards, performance and test coverage from an in-depth review

Clean up: Bug fixes, correctness guards, performance and test coverage from an in-depth review #866

Workflow file for this run

name: Downgrade
env:
JULIA_NUM_THREADS: 4
JULIA_PKG_PRECOMPILE_AUTO: 0
on:
pull_request:
branches:
- main
- dev
paths-ignore:
- 'docs/**'
push:
branches:
- main
- dev
paths-ignore:
- 'docs/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['1.10', '1.12', '1']
steps:
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
- name: Add LegendJuliaRegistry
run: julia -e 'using Pkg; Pkg.Registry.add("General"); Pkg.Registry.add(Pkg.RegistrySpec(url = "https://github.com/legend-exp/LegendJuliaRegistry"))'
shell: bash
- name: Downgrade NearestNeighbors # Temporary fix: this is needed to work with older versions of StaticArrays
run: julia --project=. -e 'using Pkg; Pkg.add(name = "NearestNeighbors", version = "0.4.13"); Pkg.compat("NearestNeighbors", "0.4.13")'
shell: bash
if: matrix.version == '1.10'
- name: Fix dependencies for julia-1.13 # Temporary fix: this is needed for Unitful and KernelAbstractions to downgrade to a version that works with julia-1.13
run: julia --project=. -e 'using Pkg; Pkg.add(name = "Unitful", version = "1.25.1"); Pkg.compat("Unitful", "1.25.1"); Pkg.compat("KernelAbstractions", "0.8.1, 0.9")'
shell: bash
if: matrix.version == '1'
- uses: julia-actions/julia-downgrade-compat@v2
with:
julia_version: ${{ matrix.version }}
mode: deps
skip: Pkg,TOML
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
coverage: false