Skip to content

CI

CI #27

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: 180
env:
JULIA_PKG_SERVER: "pkg.julialang.org"
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: julia-actions/install-juliaup@1da6847c869cd68e3a32b8f52fe8f005b8cd5ece # v2.2.1
with:
channel: "release"
- 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@678da69444cd5f13d7e674a90cb4f534639a14f9 # v1.11.2
#
# 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()