Fix diff style #44
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: merge_proxy-lint | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install proj | |
run: sudo apt-get install -y proj-bin libproj-dev | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- name: Get pip cache dir | |
id: pip-cache | |
run: echo "::set-output name=dir::$(pip cache dir)" | |
- name: pip cache | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.pip-cache.outputs.dir }} | |
key: ${{ runner.os }}-pip-${{ hashFiles('.gitub/workflows/lint.yml') }} | |
restore-keys: ${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install -r merge_proxy/requirements.txt -r merge_proxy/requirements-dev.txt | |
- uses: psf/[email protected] | |
- name: Run flake8 | |
run: (cd merge_proxy && python -m flake8 merge_proxy/) | |
- name: Run mypy | |
run: (cd merge_proxy && python -m mypy merge_proxy/) |