From 34c857387e03a375d3cceac8f0483537ca407328 Mon Sep 17 00:00:00 2001 From: shoucandanghehe Date: Fri, 28 Jun 2024 14:09:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20=E6=B7=BB=E5=8A=A0=20TypeCheck?= =?UTF-8?q?=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/TypeCheck.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/TypeCheck.yml diff --git a/.github/workflows/TypeCheck.yml b/.github/workflows/TypeCheck.yml new file mode 100644 index 0000000..b60539c --- /dev/null +++ b/.github/workflows/TypeCheck.yml @@ -0,0 +1,27 @@ +name: Run mypy type check + +on: + push: + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install poetry + run: pipx install poetry + shell: bash + + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + cache: 'poetry' + + - run: poetry install + shell: bash + + - name: Run Mypy + shell: bash + run: | + poetry run mypy ./nonebot_plugin_tetris_stats