Skip to content

Merge pull request #11 from pnnl/fixzeroprob #82

Merge pull request #11 from pnnl/fixzeroprob

Merge pull request #11 from pnnl/fixzeroprob #82

Workflow file for this run

name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
steps:
- name: Git clone
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('tox.ini', 'setup.py') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt
- name: Run tests
run: python -m tox -e py
- name: lint with flake8
run: flake8 --ignore=E127,E126,F401,W503 SOSAT tests
- name: coverage
run: coverage run --source SOSAT -m pytest
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
coveralls_finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true