Skip to content

Commit

Permalink
Merge 51c234e into ad92122
Browse files Browse the repository at this point in the history
  • Loading branch information
drvinceknight committed Dec 2, 2019
2 parents ad92122 + 51c234e commit 9891f76
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 42 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci-debian-macos.yml
@@ -0,0 +1,50 @@
name: Test on MacOS and ubuntu

on: [push, pull_request]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest, macOS-latest]
python-version: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install testing dependencies
run: |
pip install pytest
pip install pytest-cov
pip install hypothesis
pip install matplotlib>=3.0.2
pip install black
pip install coverage
pip install coveralls
- name: Test with pytest
run: |
python setup.py develop
pytest --cov=nashpy tests/
- name: Report coverage to coveralls (only on py3.8 and ubuntu)
if: matrix.python-version == 3.8 && matrix.os == 'ubuntu-latest'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
coveralls
- name: Check format (only on py3.8 and ubuntu)
if: matrix.python-version == 3.8 && matrix.os == 'ubuntu-latest'
run: |
black -l 80 . --check
- name: Doctest
run: |
python doctests.py
35 changes: 35 additions & 0 deletions .github/workflows/ci-windows.yml
@@ -0,0 +1,35 @@
name: Test on Windows

on: [push]

jobs:
build:

runs-on: windows-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install testing dependencies
run: |
pip install pytest
pip install hypothesis
pip install matplotlib>=3.0.2
- name: Test with pytest
run: |
python setup.py develop
pytest tests/
- name: Doctest
run: |
python doctests.py
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

0 comments on commit 9891f76

Please sign in to comment.