Merge pull request #263 from bogdant36/CTX-6321-i #1155
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: Linter code check | |
on: | |
push: | |
branches: | |
- main | |
- stage | |
- develop | |
pull_request: | |
types: [opened, reopened, synchronize] | |
branches: | |
- main | |
- stage | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip pipenv wheel | |
pipenv install --dev | |
- name: Generate mypy cache | |
run: | | |
pipenv run mypy coretex &> /dev/null || echo "Mypy cache created" | |
- name: Analysing the code with mypy | |
run: | | |
yes | pipenv run mypy --install-types | |
pipenv run mypy coretex |