Skip to content

Commit

Permalink
Run automated test using github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekram authored and abhishek-ram committed Jan 8, 2022
1 parent 66954dc commit 6cd2025
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run Unit Tests
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
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 -e ".[tests]"
- name: Run Tests
run: |
pytest --cov=pyas2lib --cov-config .coveragerc --black --pylava
- name: Generate CodeCov Report
run: |
pip install codecov
codecov

0 comments on commit 6cd2025

Please sign in to comment.