-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.23 KB
/
testing.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
name: Testing
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up micromamba
uses: mamba-org/[email protected]
with:
# the create command looks like this:
# `micromamba create -n test-env python=<the corresponding version> kim-api=2.3.0`
environment-name: test-env
cache-environment: true
create-args: >-
-f tests/environment.yml
- name: Install AFLOW
shell: bash -el {0}
run: |
wget http://materials.duke.edu/auro/aflow3.tar.xz
tar xf aflow3.tar.xz
cd aflow.3*
make -j4
export PATH=$PATH:$PWD
cd ..
- name: Install KIM model
shell: bash -el {0}
run: |
kim-api-collections-management install user LJ_Shifted_Bernardes_1958LowCutoff_Ar__MO_720819638419_004
- name: Install
shell: bash -el {0}
run: |
python -m pip install .
- name: Run tests
shell: bash -el {0}
run: |
cd tests
export KIM_PROPERTY_PATH=$PWD/mock-test-drivers-dir/*/local-props:$PWD/mock-test-drivers-dir/*/local_props
pytest