Skip to content

Commit

Permalink
Add a coverage step
Browse files Browse the repository at this point in the history
  • Loading branch information
flyck committed Feb 22, 2021
1 parent 74467f5 commit dc50f3d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Python coverage

on:
push:
branches: [master]
pull_request:
branches: [master]

env:
AWS_DEFAULT_REGION: eu-central-1

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 coverage boto3 moto pytest
- name: Coverage
run: |
cd cost-reporter
PYTHONPATH=./src coverage run --branch -m pytest
PYTHONPATH=./src coverage report src/*.py

0 comments on commit dc50f3d

Please sign in to comment.