Skip to content

Commit b9ad04e

Browse files
authored
Merge branch 'main' into main
2 parents 93a762a + b350ae3 commit b9ad04e

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

.github/workflows/test.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Testing
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v2
16+
17+
- name: Setup Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.7
21+
22+
- name: Install C++ dependencies
23+
run: |
24+
sudo apt-get install openbabel
25+
26+
- name: Cache pip
27+
uses: actions/cache@v2
28+
id: pip-cache
29+
with:
30+
path: ~/.cache/pip
31+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
32+
restore-keys: |
33+
${{ runner.os }}-pip-
34+
35+
- name: Install dependencies
36+
if: steps.pip-cache.outputs.cache-hit != 'true'
37+
run: |
38+
pip install -r requirements.txt
39+
pip install -r requirements-ci.txt
40+
pip install .[complete]
41+
42+
- name: pytest
43+
run: |
44+
pytest --ignore=atomate/qchem/test_files --cov=atomate --cov-report html:coverage_reports atomate
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM python:3.6.4
1+
FROM python:3.7.3
22

33
RUN apt-get update && apt-get install -y gfortran python-openbabel python-vtk python3-tk
44
RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
55
RUN bash Miniconda3-latest-Linux-x86_64.sh -b
6-
RUN export PATH=$HOME/miniconda3/bin:$PATH
6+
RUN export PATH=$HOME/miniconda3/bin:$PATH

0 commit comments

Comments
 (0)