Update dependency mypy to v1.6.1 #2228
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: ci | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
- name: set up python | |
uses: actions/setup-python@v4 | |
- name: cache python environment | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-2${{ hashFiles('requirements.txt') }} | |
- name: pip install | |
run: | | |
pip install -r requirements.txt | |
- name: black movielog | |
run: black movielog | |
- name: black tests | |
run: black tests | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
- name: set up python | |
uses: actions/setup-python@v4 | |
- name: cache python environment | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-2${{ hashFiles('requirements.txt') }} | |
- name: pip install | |
run: | | |
pip install -r requirements.txt | |
- name: mypy movielog tests | |
run: mypy movielog tests | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
- name: set up python | |
uses: actions/setup-python@v4 | |
- name: cache python environment | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-2${{ hashFiles('requirements.txt') }} | |
- name: pip install | |
run: | | |
pip install -r requirements.txt | |
- name: flake8 movielog | |
run: | | |
flake8 movielog --count --show-source --statistics | |
- name: flake8 tests | |
run: | | |
flake8 tests --count --show-source --statistics | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
- name: set up python | |
uses: actions/setup-python@v4 | |
- name: cache python environment | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-2${{ hashFiles('requirements.txt') }} | |
- name: pip install | |
run: | | |
pip install -r requirements.txt | |
- name: pytest | |
run: | | |
pytest | |
vale: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
- name: Vale | |
uses: errata-ai/[email protected] | |
with: | |
# Optional | |
files: reviews | |
env: | |
# Required, set by GitHub actions automatically: | |
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |