-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (54 loc) · 1.49 KB
/
continuous-integration.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
63
64
name: flake8 pytest
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
steps:
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Checkout
uses: actions/checkout@v2
with:
path: augur
- name: Checkout firecrown
uses: actions/checkout@v2
with:
repository: LSSTDESC/firecrown
ref: refs/tags/v0.5
path: firecrown
- name: Install dependencies
shell: bash -l {0}
run: |
conda activate base
conda install -q -c conda-forge --only-deps firecrown
cd firecrown
pip install numdifftools
pip install --no-deps -e .
conda install -q flake8
conda install -q pytest
conda install -q matplotlib
conda install -q numdifftools -c conda-forge
cd ..
git clone https://github.com/LSSTDESC/TJPCov.git
cd TJPCov
pip install --no-deps -e .
- name: Environment test
shell: bash -l {0}
run: |
conda info
conda activate base
which python
- name: flake8
shell: bash -l {0}
run: /usr/share/miniconda/bin/flake8 augur --max-line-length=100 --count --show-source --statistics
- name: pytest
shell: bash -l {0}
run: |
conda activate base
cd augur
/usr/share/miniconda/bin/pytest