Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Adding basic Github actions workflow for testing package
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Bunn <stephen@bunn.io>
  • Loading branch information
stephen-bunn committed Oct 11, 2019
1 parent b33be84 commit ec2a4c0
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test Package
on: [push, pull_request]
jobs:
test:
strategy:
max-parallel: 3
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
python-version: [3.6, 3.7]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v1
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e .[test] --upgrade
- name: Run Tests
run: |
pytest
coverage:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v1
- name: Use Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Coverage Reporters
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade coverage codacy-coverage codecov
python -m pip install -e .[test] --upgrade
- name: Run Tests
run: |
pytest

0 comments on commit ec2a4c0

Please sign in to comment.