You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/09/20 19:30:30 UTC
[incubator-ponymail-foal] branch master updated: Create
type-tests.yml
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 87de8d0 Create type-tests.yml
87de8d0 is described below
commit 87de8d01d432ad3b7af084bd4410e27bfaefd26e
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Sep 20 14:30:25 2021 -0500
Create type-tests.yml
---
.github/workflows/type-tests.yml | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/.github/workflows/type-tests.yml b/.github/workflows/type-tests.yml
new file mode 100644
index 0000000..30599c0
--- /dev/null
+++ b/.github/workflows/type-tests.yml
@@ -0,0 +1,30 @@
+name: Foal Type Tests
+
+when: [push,workflow_dispatch]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ max-parallel: 2
+ matrix:
+ python-version: [3.7, 3.9]
+ steps:
+ - uses: actions/checkout@master
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install -r tools/requirements.txt
+ pip install -r server/requirements.txt
+ - name: Type testing with mypy
+ run: |
+ mypy --cache-dir /tmp/ --install-types
+ mypy --cache-dir /tmp/ --ignore-missing-imports tools/archiver.py
+ mypy --cache-dir /tmp/ --ignore-missing-imports tools/import-mbox.py
+ mypy --cache-dir /tmp/ --ignore-missing-imports server/main.py
+ mypy --cache-dir /tmp/ --ignore-missing-imports server/plugins/*.py
+ mypy --cache-dir /tmp/ --ignore-missing-imports server/endpoints/*.py