Skip to content

Commit

Permalink
Add github actions ubuntu workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Aug 30, 2019
1 parent 69f9002 commit 3ad34f7
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Python package

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
include:
- python-version: 2.7
env:
TOXENV: py27,
- python-version: 3.5
env:
TOXENV: py35,
- python-version: 3.6
env:
TOXENV: py36,
- python-version: 3.7
env:
TOXENV: py37,
- python-version: 3.8-dev
env:
TOXENV: py38,

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: |
sudo apt-get install iputils-ping
python -m pip install --upgrade pip
pip install tox codecov coveralls pytest-cov
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: Test with pytest
run: |
py.test --cov=ippy tests/
tox -e ${{ matrix.include.python-version.TOXENV }}
codecov
coveralls

0 comments on commit 3ad34f7

Please sign in to comment.