Create __init__.py.txt #34
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: | |
branches: | |
- main | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11" | |
- name: Install poetry | |
run: python -m pip install poetry | |
- name: Install pytest | |
run: pip install pytest pytest-cov | |
- name: Install dependencies | |
run: pip install -e . | |
- name: Run Tests | |
run: poetry run pytest | |
- name: Run Coverage | |
run: | | |
poetry run coverage run -m pytest | |
poetry run coverage report | |