Restructure trek detail UI #3339
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: Linting | |
on: | |
pull_request: | |
paths: | |
- 'geotrek/**' # if geotrek code change | |
- '.github/workflows/lint.yml' # if lint workflow change | |
- 'dev-requirements.txt' # if dev-requirements.txt change | |
- 'setup.cfg' # if lint tools configuration change | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
jobs: | |
migrations: | |
name: Checking SRID in migrations files | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
test $(ls geotrek/*/migrations/*.py | xargs grep -l srid | xargs grep -L SRID | wc -l) -eq 0 | |
flake8: | |
name: Checking Flake8 rules | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/python-cache-requirements | |
with: | |
requirements: dev-requirements.txt | |
- name: Install dependencies | |
run: | | |
pip3 install -c dev-requirements.txt flake8 | |
- name: Flake8 | |
run: | | |
flake8 geotrek |