rm dev_deploy.sh #137
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: check | |
on: | |
push | |
jobs: | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.11.10 | |
architecture: x64 | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.5.1 | |
virtualenvs-create: true | |
virtualenvs-in-project: false | |
- name: Install dependencies | |
run: poetry install | |
- name: Run flake8 | |
run: poetry run flake8 | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.11.10 | |
architecture: x64 | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.5.1 | |
virtualenvs-create: true | |
virtualenvs-in-project: false | |
- name: Install dependencies | |
run: poetry install | |
- name: Run mypy for src_ | |
run: poetry run mypy -p src_ --cache-dir=/dev/null --config-file=pyproject.toml | |
- name: Run mypy for tests | |
run: poetry run mypy -p tests --cache-dir=/dev/null --config-file=pyproject.toml |