Skip to content

Commit

Permalink
Switching from travis to GH actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fruzsinaagocs committed Feb 14, 2022
1 parent e55786a commit 209b491
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 39 deletions.
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
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
35 changes: 35 additions & 0 deletions .github/workflows/python-package.yml
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
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
numpy>=1.20.0
scipy
matplotlib
pytest
coverage

0 comments on commit 209b491

Please sign in to comment.