-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (52 loc) · 1.43 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
54
55
56
57
58
59
60
61
62
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
#- name: Setup Miniconda
# uses: conda-incubator/setup-miniconda@v2
- name: Build dependencies
run: |
# Update apt-get
sudo apt-get update
# Install gfortran
sudo apt-get install gfortran
# Install conda
#wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
#bash miniconda.sh -b -p $HOME/miniconda
#export PATH=$HOME/miniconda/bin:$PATH
#conda config --set always_yes yes --set changeps1 no
#conda update -q conda
#conda info -a
# Install dependencies
#conda install -c conda-forge numpy pandas
pip install numpy
pip install pandas
pip install pytest
pip install pytest-cov
- name: Build ELECTRIC with Tinker
run: |
./build.sh
- name: Run the pytest tests
env:
CODECOV_TOKEN: "8b90eeee-10a0-46aa-be29-f2680364ea1a"
run: |
# Run pytest
cd ELECTRIC/pytest
pytest -vv --cov-report=xml --cov=ELECTRIC --cov=util
ls -a -l
bash <(curl -s https://codecov.io/bash)