ECMWF API Adapter and Weather Provider #187
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
# This workflow will run linters and static type checkers | |
name: Code Check | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: "3.10" | |
activate-environment: test | |
- name: Install flake8 | |
shell: bash -el {0} | |
run: | | |
conda install flake8 | |
- name: Lint with flake8 | |
shell: bash -el {0} | |
run: | | |
flake8 . --count --statistics | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: "3.10" | |
activate-environment: test | |
- name: Install mypy | |
shell: bash -el {0} | |
run: | | |
conda install mypy | |
- name: Check types | |
shell: bash -el {0} | |
run: | | |
mypy --install-types --non-interactive . |