Skip to content

Commit

Permalink
Use GitHub actions for python
Browse files Browse the repository at this point in the history
  • Loading branch information
kalekundert committed Jun 9, 2020
1 parent 70985cf commit 707dfaa
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Python package

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]

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 '.[tests]'
- name: Test with pytest
run: |
pytest
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ classifiers = [
'Topic :: Scientific/Engineering :: Bio-Informatics',
]
[tool.flit.metadata.requires-extra]
tests = [
'pytest',
'hypothesis',
'pytest-cov',
'coveralls',
'attrs',
]
docs = [
'sphinxcontrib-programoutput',
'sphinx_rtd_theme',
Expand Down

0 comments on commit 707dfaa

Please sign in to comment.