Update README.md #211
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
lint: | |
name: Lint and Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ "3.10", "3.11", "3.12" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-dev.txt | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Check code formatting with black | |
run: | | |
black --check . | |
# - name: Test with pytest | |
# run: | | |
# pytest | |
# - name: Generate Code Coverage | |
# run: | | |
# coverage run -m pytest | |
# coverage report -m | |
- name: Type Check with mypy | |
run: | | |
mypy --ignore-missing-imports \ | |
--exclude notification/discord.py \ | |
--exclude utils/logo.py \ | |
--exclude src/turndown/turndown.py \ | |
--exclude src/turndown/commonmark_rules.py \ | |
--exclude example \ | |
--exclude main.py \ | |
--exclude moodle/moodle_notification_handler.py \ | |
--exclude src/services/markdown/rules/commonmark.py \ | |
--follow-imports=skip . |