diff --git a/.github/workflows/ci-additional.yaml b/.github/workflows/ci-additional.yaml index dc9cc2cd2fe..52f785c6a00 100644 --- a/.github/workflows/ci-additional.yaml +++ b/.github/workflows/ci-additional.yaml @@ -2,10 +2,10 @@ name: CI Additional on: push: branches: - - "*" + - "main" pull_request: branches: - - "*" + - "main" workflow_dispatch: # allows you to trigger manually concurrency: @@ -117,7 +117,7 @@ jobs: python xarray/util/print_versions.py - name: Install mypy run: | - python -m pip install mypy --force-reinstall + python -m pip install "mypy<1.7" --force-reinstall - name: Run mypy run: | @@ -171,7 +171,7 @@ jobs: python xarray/util/print_versions.py - name: Install mypy run: | - python -m pip install mypy --force-reinstall + python -m pip install "mypy<1.7" --force-reinstall - name: Run mypy run: | diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 028cb3ac817..a4bc61efd42 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,10 +2,10 @@ name: CI on: push: branches: - - "*" + - "main" pull_request: branches: - - "*" + - "main" workflow_dispatch: # allows you to trigger manually concurrency: