Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests via github actions #11

Merged
merged 14 commits into from
Jun 22, 2024
Prev Previous commit
Next Next commit
ci: try pytest coverage comment
rilshok committed Jun 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit d32f95426def5e1ba345821978cb205de4012426
20 changes: 16 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -20,10 +20,22 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install .[dev] pytest-md
run: |
pip install --upgrade pip

pip install .[dev] pytest-md pytest-cov
- name: Run pre-commit hooks
uses: pre-commit/[email protected]
- name: Run pytest
uses: pavelzw/pytest-action@v2
- name: Build coverage file
run: |
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=app tests/ | tee pytest-coverage.txt
- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
emoji: false
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml

# - name: Run pytest
# uses: pavelzw/pytest-action@v2
# with:
# emoji: false