-
Notifications
You must be signed in to change notification settings - Fork 1
100 lines (81 loc) · 2.66 KB
/
Copy pathCI.yml
File metadata and controls
100 lines (81 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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()