Upgraded dependencies #23
Workflow file for this run
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: PyLint | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
run_test: | |
strategy: | |
matrix: | |
os: ["ubuntu-20.04", "ubuntu-22.04"] | |
python-version: ["3.11"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache Poetry venv | |
uses: actions/cache@v3 | |
with: | |
path: ./.venv | |
key: poetry-venv-${{ matrix.python-version }}${{ hashFiles('**/poetry.lock') }} | |
- name: Cache Poetry local | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local/share/pypoetry | |
key: poetry-local-${{ matrix.python-version }}${{ hashFiles('**/poetry.lock') }} | |
- name: Cache Poetry cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pypoetry | |
key: poetry-cache-${{ matrix.python-version }}${{ hashFiles('**/poetry.lock') }} | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.6.1 | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- name: Install dependencies | |
run: poetry install -v | |
- name: Show packages | |
run: poetry show --tree | |
- name: Create setting.py | |
run: mv setting_sample.py setting.py | |
- name: Run mypy | |
run: PYTHONPATH=./ poetry run mypy ./view/ ./module/ ./models/ ./celery_task/ ./main.py | |
- name: Run Pylint | |
run: PYTHONPATH=./ poetry run pylint --disable=R0801,E1101,E0611 ./view/ ./module/ ./models/ ./celery_task/ ./main.py |