-
Notifications
You must be signed in to change notification settings - Fork 22
53 lines (53 loc) · 1.58 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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
push:
paths-ignore:
- '.gitignore'
- 'LICENSE'
- 'README.md'
pull_request:
paths-ignore:
- '.gitignore'
- 'LICENSE'
- 'README.md'
schedule:
- cron: "0 0 1 */3 *" # Every 3 months
workflow_dispatch:
defaults:
run:
shell: bash -l {0}
jobs:
ci:
runs-on: ubuntu-latest
name: run tests (${{ matrix.config.id }} env)
strategy:
fail-fast: false
matrix:
config:
- {id: latest, envfile: polyfun.yml}
- {id: locked, envfile: polyfun.yml.lock}
env:
envfile: ${{ matrix.config.envfile }}
steps:
- uses: actions/checkout@v3
- name: Install conda environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ${{ env.envfile }}
environment-name: ${{ matrix.config.id }}
cache-environment: true
cache-environment-key: ${{ matrix.config.id }}-${{ hashFiles(env.envfile) }}-0
# WARNING: FINEMAP is non-commercial software
#
# Do not blindly copy the code below without first checking your use case
# against the license terms. This is not legal advice. Seek professional
# help if you need it. Good luck!
#
# http://christianbenner.com/license_finemap_v1.4.html
- name: Install FINEMAP
run: |
wget http://christianbenner.com/finemap_v1.4.1_x86_64.tgz
tar xf finemap_v1.4.1_x86_64.tgz
cat finemap_v1.4.1_x86_64/LICENSE
- name: Test
run: python test_polyfun.py --finemap-exe finemap_v1.4.1_x86_64/finemap_v1.4.1_x86_64