Skip to content

Merge pull request #76 from pythonanywhere/renovate/pytest-mock-3.x #182

Merge pull request #76 from pythonanywhere/renovate/pytest-mock-3.x

Merge pull request #76 from pythonanywhere/renovate/pytest-mock-3.x #182

Workflow file for this run

name: Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: UTC
- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
pip3 install -e .
- name: Test with pytest
run: |
pytest
- name: Check coverage
run: |
pytest --cov=cli --cov=pythonanywhere --cov=scripts --cov-fail-under=65