Skip to content

Commit

Permalink
moves mypy type checking out of main check action (#612)
Browse files Browse the repository at this point in the history
* moves mypy type checking out of main check action

* adds scheduled execution
  • Loading branch information
charlesfrye authored Mar 1, 2024
1 parent 68a9737 commit 08b1eef
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 08b1eef

Please sign in to comment.