summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2023-08-18 13:42:45 (GMT)
committerGitHub <noreply@github.com>2023-08-18 13:42:45 (GMT)
commit28cab71f954f3a14de9f474ce9c4abbd23c97862 (patch)
tree73f5f3996a65407b1b11ceab7b6ff29aa3d434f2 /.github
parentfd195092204aa7fc9f13c5c6d423bc723d0b3520 (diff)
downloadcpython-28cab71f954f3a14de9f474ce9c4abbd23c97862.zip
cpython-28cab71f954f3a14de9f474ce9c4abbd23c97862.tar.gz
cpython-28cab71f954f3a14de9f474ce9c4abbd23c97862.tar.bz2
gh-104504: Run mypy on cases_generator in CI (and blacken the code) (gh-108090)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/dependabot.yml2
-rw-r--r--.github/workflows/mypy.yml14
2 files changed, 10 insertions, 6 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index f026b0f..c8a3165 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -13,7 +13,7 @@ updates:
- "version-update:semver-minor"
- "version-update:semver-patch"
- package-ecosystem: "pip"
- directory: "/Tools/clinic/"
+ directory: "/Tools/"
schedule:
interval: "monthly"
labels:
diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml
index 1315bb5..a83a90c 100644
--- a/.github/workflows/mypy.yml
+++ b/.github/workflows/mypy.yml
@@ -8,6 +8,7 @@ on:
pull_request:
paths:
- "Tools/clinic/**"
+ - "Tools/cases_generator/**"
- ".github/workflows/mypy.yml"
workflow_dispatch:
@@ -25,15 +26,18 @@ concurrency:
jobs:
mypy:
- name: Run mypy on Tools/clinic/
+ strategy:
+ matrix:
+ target: ["Tools/cases_generator", "Tools/clinic"]
+ name: Run mypy on ${{ matrix.target }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
- python-version: "3.x"
+ python-version: "3.11"
cache: pip
- cache-dependency-path: Tools/clinic/requirements-dev.txt
- - run: pip install -r Tools/clinic/requirements-dev.txt
- - run: mypy --config-file Tools/clinic/mypy.ini
+ cache-dependency-path: Tools/requirements-dev.txt
+ - run: pip install -r Tools/requirements-dev.txt
+ - run: mypy --config-file ${{ matrix.target }}/mypy.ini