Skip to content

Commit

Permalink
added coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chr-peters committed Mar 27, 2021
1 parent 1ab25fa commit 0d68345
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Coverage
on: push
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install coverage
pip install .
- name: Run coverage
run: |
coverage run --source strong_but_simple_passwords -m pytest
- name: Create report
run: coverage xml
- name: Upload report
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
verbose: true

0 comments on commit 0d68345

Please sign in to comment.