Update archtiecture #4
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: Python application | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
flake8_check: | |
runs-on: ubuntu-latest | |
env: | |
report_path: flake_report | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
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 --upgrade pip | |
pip install flake8 flake8-html | |
- name: Create folder for artifact | |
run: | | |
mkdir ${{ env.report_path }} | |
- name: Analysing the code with flake8 | |
run: flake8 --format=html --htmldir=${{ env.report_path }} | |
- name: Save report | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: flake report | |
path: ${{ env.report_path }} | |
mypy_check_api: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
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 --upgrade pip | |
pip install mypy | |
python3 -m pip install types-redis | |
- name: Check src | |
run: | | |
mypy --ignore-missing-imports ./cdn_api_async |