Skip to content

wip 2.0

wip 2.0 #14

Workflow file for this run

name: Tests & code quality
on: [push, pull_request]
permissions:
contents: read
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ "3.12" ]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-asyncio mypy black mutmut tox
pip install -e '.[test_integrations]'
- name: Test with pytest
run: |
pytest tests/
- name: Run mypy
if: ${{ matrix.os == 'ubuntu-latest' }}
run: mypy loccer
- name: Run black
if: ${{ matrix.os == 'ubuntu-latest' }}
run: black loccer tests
- name: Run tox tests
run: tox run
- name: Run mutation tests
if: ${{ matrix.os == 'ubuntu-latest' }}
run: mutmut run