test: add support overflow tests. #14
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: pytest | |
on: | |
- push | |
- pull_request | |
- workflow_dispatch | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run tests with coverage | |
run: | | |
python -m pytest --cov --cov-report=html | |
tar czf htmlcov.tar.gz htmlcov/ | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: htmlcov | |
path: htmlcov.tar.gz |