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

baunsgaard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git


The following commit(s) were added to refs/heads/main by this push:
     new a57c955  [MINOR] Python github actions parallel
a57c955 is described below

commit a57c955839fe4b509c95dee3375dab893b8c342b
Author: baunsgaard <[email protected]>
AuthorDate: Mon Nov 15 19:13:04 2021 +0100

    [MINOR] Python github actions parallel
    
    This commit change the python actions to use parallel unit tests,
    It was previously not possible to execute the tests in parallel due to
    instable start of the Context, but with the recent changes this is now
    no longer a problem.
    
    This commit also enables the previously disabled execution of tests
    using the python build distribution.
    
    Closes #1454
---
 .github/workflows/python.yml | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index 5cbd5ab..a1d4cdc 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -27,7 +27,8 @@ on:
       - 'docs/**'
       - '*.md'
       - '*.html'
-      - 'src/main/python/docs/**'
+      - 'src/test/**'
+      - 'src/assembly/**'
       - 'dev/**'
     branches:
       - main
@@ -36,7 +37,7 @@ on:
       - 'docs/**'
       - '*.md'
       - '*.html'
-      - 'src/main/python/docs/**'
+      - 'src/test/**'
       - 'dev/**'
     branches:
       - main
@@ -94,7 +95,7 @@ jobs:
         architecture: 'x64'
   
     - name: Install pip Dependencies
-      run: pip install numpy py4j wheel scipy sklearn requests pandas
+      run: pip install numpy py4j wheel scipy sklearn requests pandas 
unittest-parallel
 
     - name: Build Python Package
       run: |
@@ -107,15 +108,16 @@ jobs:
         export PATH=$SYSTEMDS_ROOT/bin:$PATH
         export SYSDS_QUIET=1
         cd src/main/python
-        python -m unittest discover -s tests -p 'test_*.py'
+        unittest-parallel -t . -s tests --module-fixtures
+        # python -m unittest discover -s tests -p 'test_*.py'
         echo "Exit Status: " $?
     
-    # TODO debug and fix JDK11 environment 
-    #- name: Run all python tests no environment
-    #  run: |
-    #    cd src/main/python
-    #    python -m unittest discover -s tests -p 'test_*.py'
-    #    echo "Exit Status: " $?
+    - name: Run all python tests no environment
+      run: |
+        cd src/main/python
+        unittest-parallel -t . -s tests --module-fixtures
+        # python -m unittest discover -s tests -p 'test_*.py'
+        echo "Exit Status: " $?
 
     - name: Run Federated Python Tests
       run: |

Reply via email to