Added additional tests #10
Workflow file for this run
This file contains hidden or 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: Coverage | |
| on: [push] | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.13 | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install coverage setuptools | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Run Coverage | |
| run: | | |
| export PYTHONPATH=./src | |
| coverage run -m pytest tests | |
| - name: Generate Coverage Report | |
| run: | | |
| coverage report | |
| - name: Creating coverage folder | |
| run: | | |
| mkdir -p coverage | |
| - name: Coverage Badge | |
| uses: tj-actions/coverage-badge-py@v2 | |
| with: | |
| output: coverage/coverage.svg | |
| - name: Publish coverage report to coverage-badge branch | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: coverage-badge | |
| folder: coverage |