-
-
Notifications
You must be signed in to change notification settings - Fork 398
48 lines (48 loc) · 1.38 KB
/
extension-tests.yml
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
name: extension-tests
on:
workflow_dispatch:
jobs:
test-ubuntu:
name: ${{ matrix.package }}
runs-on: ubuntu-latest
env:
PACKAGE: ${{ matrix.package }}
strategy:
fail-fast: false
matrix:
include:
- package: 'Alpine'
- package: 'BilevelJuMP'
- package: 'InfiniteOpt'
- package: 'LinearFractional'
- package: 'Plasmo'
- package: 'PolyJuMP'
- package: 'PowerModels'
- package: 'SDDP'
- package: 'SetProg'
- package: 'SparseVariables'
- package: 'SumOfSquares'
- package: 'UnitJuMP'
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- uses: actions/cache@v3
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- name: Test
shell: julia --color=yes {0}
run: |
import Pkg
Pkg.develop(Pkg.PackageSpec(; path = pwd()))
Pkg.develop(ENV["PACKAGE"])
Pkg.test(ENV["PACKAGE"])