-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.1 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
name: ci
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 120
services:
postgres:
image: postgres:12
ports:
- 5432:5432
rabbitmq:
image: rabbitmq:latest
ports:
- 5672:5672
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependencies
run: |
pip install -e .[dev]
- name: Install CP2K
run: |
bash .github/install_cp2k.sh
echo "$PWD/cp2k" >> $GITHUB_PATH
- name: Install QE
run: |
bash .github/install_qe.sh
echo "$PWD/qe/bin" >> $GITHUB_PATH
- name: Run pytest
run: |
pytest --cov-report=xml --cov=aiida_nanotech_empa
- name: Upload coverage to codecov
uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.xml