API - drop python 3.7 support

minimal version: 3.8.1 (flake8 6.0.0 requires Python >=3.8.1)
This commit is contained in:
Sam
2023-06-14 20:58:47 +02:00
parent dfc2ae9b70
commit 17a0af700b
6 changed files with 165 additions and 361 deletions

View File

@ -32,7 +32,7 @@ jobs:
--health-retries 5
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
steps:
- uses: actions/checkout@v2
- name: Install Poetry and Dependencies
@ -44,9 +44,12 @@ jobs:
- name: Bandit
if: matrix.python-version == '3.10'
run: bandit -r fittrackee -c pyproject.toml
- name: Lint
- name: Lint (isort & black)
if: matrix.python-version == '3.10'
run: pytest --flake8 --isort --black -m "flake8 or isort or black" fittrackee e2e --ignore=fittrackee/migrations -p no:warnings
run: pytest --isort --black -m "isort or black" fittrackee e2e --ignore=fittrackee/migrations -p no:warnings
- name: Lint (flake8)
if: matrix.python-version == '3.10'
run: flake8 fittrackee e2e
- name: Mypy
if: matrix.python-version == '3.10'
run: mypy fittrackee