removed blocking test for HTTP server to make action complete #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Unit Tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- develop | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: pip install -r tests/requirements.txt | |
- name: Run unit tests | |
run: python -m unittest discover -s tests -p 'test_*.py' | |
- name: Generate coverage report | |
run: | | |
pip install coverage | |
coverage run -m unittest discover -s tests -p 'test_*.py' | |
coverage report -m | |
- name: Upload coverage report to codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |