diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 726dd10c..7047b4af 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ env: jobs: pre-commit: env: - SKIP: pytest,pytype,no-commit-to-branch + SKIP: pytest,no-commit-to-branch runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7011e537..1057bdd5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -122,11 +122,12 @@ repos: hooks: - id: pytype name: pytype (may take up to two minutes) - entry: sh -c "pytype >/dev/tty" + #entry: sh -c "pytype >/dev/tty" + entry: pytype 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 =