Skip to content

Commit

Permalink
Merge pull request #9 from anx-cbenke/master
Browse files Browse the repository at this point in the history
Added github workflow
  • Loading branch information
nezhar authored Oct 9, 2020
2 parents 49e7955 + 1c936de commit de04dd6
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 36 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build-and-test
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "pypy2"
- "pypy3"
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 .
pip install pylama codecov
- name: Code Coverage
if: ${{ matrix.python-version != 'pypy2' && matrix.python-version != '2.7' }}
run: |
coverage run \
--source='../../updatable' --omit='../../updatable/__version__.py,../../updatable/__main__.py' run_tests.py \
&& echo 'exit code '$?
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

- name: Lint and test with pylama
if: ${{ matrix.python-version != 'pypy2' && matrix.python-version != '2.7' }}
run: |
pylama ../../updatable ../../test
- name: Setup environment
run: |
python setup.py install
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ dist/**
updatable.egg-info/**
/.coverage
/.vscode
*.swp
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

0 comments on commit de04dd6

Please sign in to comment.