Skip to content

Configure Mend for GitHub.com #24

Configure Mend for GitHub.com

Configure Mend for GitHub.com #24

Workflow file for this run

name: Pytest
on:
pull_request:
types: [opened, reopened, edited]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
pip install pytest-cov
- name: Analysing the code with pytest
run: |
pytest --cov-report xml:coverage1.xml
- uses: codecov/codecov-action@v3
if: always()
with:
files: ./coverage1.xml
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)