Skip to content

Commit 6af1c7d

Browse files
committed
migrate to github actions
1 parent c67777a commit 6af1c7d

File tree

2 files changed

+25
-19
lines changed

2 files changed

+25
-19
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Python package
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: [3.6, 3.7]
13+
PYMATGEN_VERSION: [2019.1.13, 2019.7.30]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: pip install coverage codecov pymatgen=={{ matrix.PYMATGEN_VERSION }} .
23+
- name: Test
24+
run: coverage run --source=./dpgen -m unittest -v && coverage report
25+
- run: codecov

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)