Skip to content

fix(juliaup): avoid alias-to-alias when default is a Pumas channel (#32) #95

fix(juliaup): avoid alias-to-alias when default is a Pumas channel (#32)

fix(juliaup): avoid alias-to-alias when default is a Pumas channel (#32) #95

Workflow file for this run

name: CI
on:
merge_group:
pull_request:
push:
branches:
- main
concurrency:
# Skip intermediate builds: all builds except for builds on the `master` branch
# Cancel intermediate builds: only pull request builds
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || github.run_number }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
permissions:
contents: read
jobs:
finalize:
timeout-minutes: 10
needs: [test]
if: always()
runs-on: ubuntu-latest
steps:
- run: |
echo test: ${{ needs.test.result }}
- run: exit 1
if: (needs.test.result != 'success')
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 120
env:
JULIA_PKG_SERVER: "pkg.julialang.org"
PPM_TEST_PRODUCT: ${{ matrix.product }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
product:
- "Pumas@2.8.0"
- "DeepPumas@0.9.0"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: julia-actions/install-juliaup@1da6847c869cd68e3a32b8f52fe8f005b8cd5ece # v2.2.1
with:
channel: "release"
internal-juliaup-version: "1.19.4"
- uses: julia-actions/cache@d10a6fd8f31b12404a54613ebad242900567f2b9 # v2.1.0
- run: julia --startup-file=no --project=scripts scripts/clean_precompile_files.jl
#
# License Setup:
#
- name: Ensure no LicenseSpring cache
run: julia --startup-file=no --project=scripts scripts/remove_license_cache.jl
- name: Create Pumas license file
run: echo "${LICENSESPRING_KEY:?}" > ~/.julia/PumasLicense.txt
shell: bash
env:
LICENSESPRING_KEY: ${{ secrets.LICENSESPRING_KEY }}
- name: Create DeepPumas license file
run: echo "${LICENSESPRING_KEY:?}" > ~/.julia/DeepPumasLicense.txt
shell: bash
env:
LICENSESPRING_KEY: ${{ secrets.LICENSESPRING_KEY_DEEPPUMAS }}
#
# Testing:
#
- uses: julia-actions/julia-buildpkg@e3eb439fad4f9aba7da2667e7510e4a46ebc46e1 # v1.7.0
- name: Tests
uses: julia-actions/julia-runtest@d60b785c6f2bdf4ebfb18b2b6f7d93b7dfb0efe3 # v1.11.4
#
# License Cleanup:
#
- run: rm -f ~/.julia/PumasLicense.txt
if: always()
shell: bash
- run: rm -f ~/.julia/DeepPumasLicense.txt
if: always()
shell: bash
- name: Remove LicenseSpring cache
run: julia --startup-file=no --project=scripts scripts/remove_license_cache.jl
if: always()
- run: julia --startup-file=no --project=scripts scripts/clean_precompile_files.jl
if: always()