Skip to content

Commit

Permalink
Add coveralls to testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Feb 23, 2021
1 parent 2c265ff commit 5f1593f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ jobs:
strategy:
max-parallel: 20
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
python-version: [3.8]

runs-on: ${{ matrix.os }}

env:
PMG_MAPI_KEY: ${{ secrets.PMG_MAPI_KEY }}
MPLBACKEND: "Agg"

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -21,11 +25,11 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
export PATH=$HOME/miniconda3/bin:$PATH
export MPLBACKEND=Agg
python -m pip install --upgrade pip
pip install --quiet --ignore-installed -r requirements.txt -r requirements-ci.txt
pip install -e .
- name: pytest
run: |
pytest --cov=pymatgen_diffusion --cov-report html:coverage_reports --durations=30 pymatgen_diffusion
- name: Coveralls
uses: AndreMiras/coveralls-python-action@v20201129
2 changes: 1 addition & 1 deletion requirements-ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ coveralls==3.0.0
mypy==0.812
pydocstyle==5.1.1
flake8-black==0.2.1
pylint==2.6.2
pylint==2.7.0

0 comments on commit 5f1593f

Please sign in to comment.