-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (53 loc) · 1.3 KB
/
tests.yaml
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
name: tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
canceller:
runs-on: ubuntu-18.04
steps:
- name: cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, macos-10.15]
slim_version: ["v3.7"]
steps:
- name: checkout demes-slim
uses: actions/checkout@v2
- name: checkout SLiM
uses: actions/checkout@v2
with:
repository: MesserLab/SLiM
fetch-depth: 0
ref: ${{ matrix.slim_version }}
path: SLiM
- name: build SLiM
run: |
cd SLiM
mkdir Release
cd Release
cmake -D CMAKE_BUILD_TYPE=Release ..
make -j 2
./eidos -testEidos
./slim -testEidos
./slim -testSLiM
- name: setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: install Python dependencies
run: |
pip install -r tests/requirements.txt
- name: run tests
run: |
cd tests
export PATH=../SLiM/Release:$PATH
sh tests.sh