-
Notifications
You must be signed in to change notification settings - Fork 21
40 lines (35 loc) · 1.24 KB
/
CI.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
name: Run tests
on:
push:
paths-ignore: [README.md, CHANGELOG.md]
pull_request:
types: [opened, reopened, ready_for_review]
jobs:
highstests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.8']
julia-arch: [x64]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-buildpkg@latest
# - uses: mxschmitt/action-tmate@v3 # for interactive debugging
- run: julia --project=. -e 'using Pkg; Pkg.activate("test"); Pkg.rm("Xpress"); Pkg.activate("."); using TestEnv; TestEnv.activate(); cd("test"); include("runtests.jl")'
shell: bash
xpresstests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Decrypt
env:
TRANSCRYPT_PASSWORD: ${{ secrets.TRANSCRYPT_PASSWORD }}
run: ./.github/scripts/decrypt.sh
- name: Build containers
run: docker-compose up -d
- name: Execute tests in container
run: docker exec jul julia --project=. -e 'import Pkg; Pkg.test("REopt"; test_args=["Xpress"])'