You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2020/08/20 16:31:55 UTC

[incubator-ponymail-foal] branch master updated: Set up unit test action

This is an automated email from the ASF dual-hosted git repository.

sebb 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 cbf4a14  Set up unit test action
cbf4a14 is described below

commit cbf4a14630c6e4a602a61a1f546f22ead8348b74
Author: Sebb <se...@apache.org>
AuthorDate: Thu Aug 20 17:31:39 2020 +0100

    Set up unit test action
---
 .github/workflows/unittest.yml | 39 +++++++++++++++++++++++++++++++++++++++
 requirements.txt               |  3 ++-
 2 files changed, 41 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml
new file mode 100644
index 0000000..108ac8b
--- /dev/null
+++ b/.github/workflows/unittest.yml
@@ -0,0 +1,39 @@
+name: Unit Tests
+
+#on: [push,workflow_dispatch]
+# Only manual trigger for now
+on: workflow_dispatch
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+    strategy:
+      max-parallel: 4
+      matrix:
+#         python-version: [2.7, 3.5, 3.6, 3.7]
+        python-version: [3.7]
+
+    steps:
+    - uses: actions/checkout@master
+    - uses: actions/checkout@master   
+      with:
+        repository: apache/incubator-ponymail-unit-tests
+        path: pmtests
+    - name: Set up Python ${{ matrix.python-version }}
+      uses: actions/setup-python@v1
+      with:
+        version: ${{ matrix.python-version }}
+    - name: Install dependencies
+      run: |
+        python -m pip install --upgrade pip
+        pip install -r requirements.txt
+#    - name: Test with pytest
+#      run: |
+#        pip install pytest
+#        pytest
+    - name: Test with Ponymail Unit tests
+      run: |
+        sed -e 's/# cropout:/cropout:/' tools/ponymail.cfg.sample >tools/ponymail.cfg
+        cd pmtests
+        python runall.py --root ..
diff --git a/requirements.txt b/requirements.txt
index 8f51653..cd8d391 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -4,4 +4,5 @@ elasticsearch~=7.8.1
 certifi~=2020.6.20
 chardet~=3.0.4
 netaddr~=0.8.0
-formatflowed~=2.0.0
\ No newline at end of file
+formatflowed~=2.0.0
+html2text~=2019.8.11