Skip to content

Commit

Permalink
add test + code coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ncullen93 committed Feb 18, 2024
1 parent d55a9fa commit 60bc7f6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: push
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5

- name: Install package
run: python -m pip install .

- name: Install coverage
run: python -m pip install coverage

- name: Unit tests
run: tests/run_tests.sh -c

- name: Coveralls
uses: coverallsapp/github-action@v2

coveralls_finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true

0 comments on commit 60bc7f6

Please sign in to comment.