From 07fbe44b5dac41fafe52d882c9be32d1bf495427 Mon Sep 17 00:00:00 2001 From: Bernhard Kaindl Date: Fri, 15 Nov 2024 12:00:00 +0100 Subject: [PATCH] Fix pytype check: Move it to the Python3.11 matrix Signed-off-by: Bernhard Kaindl --- .pre-commit-config.yaml | 2 +- pytype_runner.py | 1 + tox.ini | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7011e537..9f5dc1df 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -126,7 +126,7 @@ repos: types: [python] verbose: true language: python - language_version: python3.8 + language_version: python3.11 require_serial: true additional_dependencies: - pytype diff --git a/pytype_runner.py b/pytype_runner.py index 113971c1..4bd59b59 100755 --- a/pytype_runner.py +++ b/pytype_runner.py @@ -166,6 +166,7 @@ def setup_and_run_pytype_action(script_name: str): # Write the panda table to a markdown output file: summary_file = os.environ.get("GITHUB_STEP_SUMMARY", None) if summary_file: + os.makedirs(os.path.dirname(summary_file), exist_ok=True) with open(summary_file, "w", encoding="utf-8") as fp: to_markdown(script_name, fp, retcode, results, filelink_baseurl) else: diff --git a/tox.ini b/tox.ini index 0491f56e..87015904 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ # .github/workflows/main.yml is set up to test with 3.11, 3.12 and 3.13 in parallel. # Therefore, use three environments: One with 3.11, one with 3.12 and one with 3.13: # -envlist = py311-covcp-check-mdreport, py312-cov-pytype, py313-cov-lint-pyright +envlist = py311-covcp-check-pytype-mdreport, py312-cov, py313-cov-lint-pyright isolated_build = true skip_missing_interpreters = true requires =