Skip to content

Commit

Permalink
actions: use Codecov
Browse files Browse the repository at this point in the history
And test for Python 3.7 and 3.8

Signed-off-by: Paul Spooren <mail@aparcar.org>
  • Loading branch information
aparcar committed Mar 20, 2020
1 parent 595a412 commit 0eb874e
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.7, 3.8 ]
name: Python ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v2
- name: Install ImageBuilder prereqs
run: sudo apt-get install -y libncurses5-dev
- name: Set up Python 3.8
uses: actions/setup-python@v1
- uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -34,4 +38,8 @@ jobs:
- name: Test with pytest
run: |
pip install pytest
pytest --runslow
pip install coverage
coverage run -m pytest --runslow
coverage xml
- name: Codecov
uses: codecov/codecov-action@v1

0 comments on commit 0eb874e

Please sign in to comment.