Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
85 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.