-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switching from travis to GH actions for CI
- Loading branch information
1 parent
e55786a
commit 209b491
Showing
4 changed files
with
49 additions
and
39 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,14 @@ | ||
# Description | ||
|
||
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. | ||
|
||
Fixes # (issue) | ||
|
||
# Checklist: | ||
|
||
- [ ] I have performed a self-review of my own code | ||
- [ ] My code is PEP8 compliant (`flake8 --max-line-length 99 primpy tests`) | ||
- [ ] My code contains compliant docstrings (`pydocstyle --convention=numpy primpy`) | ||
- [ ] New and existing unit tests pass locally with my changes (`pytest`) | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] Update version number |
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: Python package | ||
|
||
on: | ||
pull_request | ||
push | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.5, 3.6, 3.7, 3.8, 3.9] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Install testing packages | ||
run: | | ||
# pip install flake8 | ||
# pip install pydocstyle | ||
pip install pytest | ||
pip install pytest-cov pytest-xdist codecov | ||
- name: Test with pytest | ||
run: | | ||
pytest --cov=pyoscode tests | ||
- name: Upload coverage to codecov | ||
uses: codecov/codecov-action@v2 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
numpy>=1.20.0 | ||
scipy | ||
matplotlib | ||
pytest | ||
coverage |