From 08b1eef8766786f168e249c850e92caa29ad1987 Mon Sep 17 00:00:00 2001 From: Charles Frye Date: Thu, 29 Feb 2024 17:02:42 -0800 Subject: [PATCH] moves mypy type checking out of main check action (#612) * moves mypy type checking out of main check action * adds scheduled execution --- .github/workflows/check.yml | 17 ----------------- .github/workflows/typecheck.yml | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/typecheck.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3f552c8a8..075269b61 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -25,23 +25,6 @@ jobs: - run: ruff format --check - mypy: - name: MyPy - runs-on: ubuntu-20.04 - - steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - - name: Install mypy - run: pip install mypy==0.950 - - - name: Run - run: python3 internal/typecheck.py - nbconvert: name: NbConvert runs-on: ubuntu-20.04 diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml new file mode 100644 index 000000000..2db90245c --- /dev/null +++ b/.github/workflows/typecheck.yml @@ -0,0 +1,24 @@ +name: Typecheck +on: + workflow_dispatch: + schedule: + - cron: "17 16 * * *" + # Run on main every day at 16:17 UTC + +jobs: + mypy: + name: MyPy + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install mypy + run: pip install mypy==0.950 + + - name: Run + run: python3 internal/typecheck.py