-
Notifications
You must be signed in to change notification settings - Fork 6
58 lines (47 loc) · 1.29 KB
/
unit_and_regtest.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
name: Regression and unitary tests
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
python-version: [3.8.5]
os: ["ubuntu-22.04"]
runs-on: "${{ matrix.os }}"
name: Regression and unitary tests
steps:
- uses: actions/checkout@v2
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- run: conda --version
- run: which python
- name: Install dependencies and Project
run: |
#conda config --add channels conda-forge
conda config --set channel_priority strict
conda install -c conda-forge --file requirements.txt
conda install scipy
conda install pip
pip install .
pip install ase==3.22.1
echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH
- name: Install Gfortran and Compile Driver
shell: bash
run: |
sudo apt-get update
sudo apt-get install gfortran
cd drivers/f90
make
- name: unit-tests
shell: bash
run: |
pwd
i-pi-tests -t unit
- name: regtests
shell: bash
run: |
pwd
i-pi-tests -t regtests