From 7c3d4d17c4368fe7ed458c5547acd0cc86fd6010 Mon Sep 17 00:00:00 2001 From: ZeroWave <36341766+ZeroWave022@users.noreply.github.com> Date: Fri, 30 Jun 2023 23:58:10 +0200 Subject: [PATCH] build: Add mypy linting, add step names --- .github/workflows/lint.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3e62de8..6c291b8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,8 +7,26 @@ jobs: name: Black runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: psf/black@stable + - name: Checkout + uses: actions/checkout@v3 + - name: Run Black + uses: psf/black@stable with: options: "--check --verbose" src: "." + mypy: + name: Mypy + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install mypy + run: | + pip install mypy + - name: Run mypy + run: | + mypy yr_weather/