Skip to content

fix: pytest command

fix: pytest command #9

Workflow file for this run

name: Run Pytest
on:
pull_request:
permissions:
contents: read
pull-requests: write
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run pytest
env:
API_KEY: ${{ secrets.API_KEY }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
run: pytest --cov=app --cov-report=term-missing | tee pytest-coverage.txt
- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt