Skip to content

Commit

Permalink
Create python-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePumpingLemma authored and David Grochowski committed Nov 10, 2020
1 parent 4cb4d2d commit eb14114
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 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 codecov tox tox-gh-actions
- name: Run Tox
run: tox
- name: Publish coverage
run: codecov
15 changes: 11 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ envlist =
docs
py{36,38}-black

[gh-actions]
python =
3.5: py35
3.6: py36, docs
3.7: py37
3.8: py38

[travis]
python =
3.5: py35
3.6: py36, docs
3.7: py37
3.8: py38
3.5: py35
3.6: py36, docs
3.7: py37
3.8: py38

[testenv]
deps =
Expand Down

0 comments on commit eb14114

Please sign in to comment.