Add database #7
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: Tests | |
on: push | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.11.3 | |
- name: Install tools | |
run: | | |
python -m pip install --upgrade pip pytest | |
pip install coverage | |
- name: Code coverage report | |
run: | | |
python3 -m coverage run -m unittest test_tests.py | |
python3 -m coverage report | |
python3 -m coverage html | |
- name: Archive code coverage HTML report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: code-coverage-report | |
path: htmlcov |