Skip to content

feat(pypi): Remove isort and use ruff to handle all styling #27

feat(pypi): Remove isort and use ruff to handle all styling

feat(pypi): Remove isort and use ruff to handle all styling #27

Workflow file for this run

name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
python-version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: ${{ matrix.os }}
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 -e ".[dev]"
- name: Type check with MyPy
run: |
python -m mypy ./leetcode_study_tool
- name: Test with pytest, ensuring 75% coverage
run: |
pip install pytest pytest-cov
pytest tests/ --cov --cov-fail-under=75