cmems obs script updates #556
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: Lint Python | |
on: | |
push: | |
branches: [ master, ] | |
paths: | |
- '**.py' | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ master ] | |
paths: | |
- '**.py' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.12.0" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install isort black flake8 flake8-isort flake8-black | |
- name: Analysing the code with pylint | |
run: | | |
isort . | |
black . |