-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (88 loc) · 2.59 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: ase-fleur
on: [push, pull_request, workflow_dispatch, workflow_call]
jobs:
linting:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install git+https://gitlab.com/ase/ase.git@master
pip install -e .[pre-commit,testing]
- name: Run pre-commit
run: |
pre-commit run --all-files || (git status --short; git diff ; exit 1)
tests:
strategy:
max-parallel: 20
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.7","3.8","3.9","3.10","3.11"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install git+https://gitlab.com/ase/ase.git@master
pip install -e .[testing]
- name: pytest
run: |
pytest
- name: Upload to Codecov
uses: codecov/codecov-action@v3
calulator-test:
name: Test Fleur Calculator
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.8",]
fleur-version: ["6.0"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install git+https://gitlab.com/ase/ase.git@master
pip install -e .[testing]
- name: Setup Conda
uses: s-weigand/setup-conda@v1
with:
conda-channels: conda-forge
update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install mamba
run: |
conda --version
conda install mamba
- name: Install Fleur code from conda
run: |
mamba install fleur=${{ matrix.fleur-version }}
fleur_MPI -h
inpgen -h
- name: pytest
run: |
mkdir -p ~/.config/ase
cp test-files/ase_test.conf ~/.config/ase/ase.conf
pytest --calculator
- name: Upload to Codecov
uses: codecov/codecov-action@v3