-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.08 KB
/
python-package-conda.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
name: CI
on: [push, pull_request]
permissions:
contents: read
defaults:
run:
shell: bash -el {0} # Lets conda work
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- name: Set up environment
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment.yml
- name: Install test dependencies
run: |
pip install -e .[test,ani,chgnet,mace]
- name: Add quantum chemistry tools (Linux)
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update
sudo apt install -y cp2k
else
echo "$RUNNER_OS not supported"
exit 1
fi
shell: bash
- name: Lint with flake8
run: |
pip install flake8
flake8 cascade tests
- name: Test with pytest
run: pytest --cov=cascade --forked --timeout=300 tests
- name: Coveralls
run: |
pip install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}