Skip to content

Commit

Permalink
Merge pull request #1 from spyoungtech/gha
Browse files Browse the repository at this point in the history
add unittest workflow
  • Loading branch information
spyoungtech committed Mar 12, 2022
2 parents 0b61dcc + 5b1113f commit f0a38a9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/unittests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install pytest coverage
- name: Test with coverage/pytest
run: |
coverage run -m pytest
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install --upgrade coveralls
coveralls --service=github

0 comments on commit f0a38a9

Please sign in to comment.