diff options
-rw-r--r-- | .github/workflows/build_tests.yml | 11 | ||||
-rw-r--r-- | ot/utils.py | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/.github/workflows/build_tests.yml b/.github/workflows/build_tests.yml index fa814ba..ad06a9d 100644 --- a/.github/workflows/build_tests.yml +++ b/.github/workflows/build_tests.yml @@ -3,8 +3,6 @@ name: build on: push: - pull_request: - create: branches: - 'master' @@ -18,7 +16,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.5, 3.6, 3.7, 3.8] + python-version: [ 3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v1 @@ -93,11 +91,11 @@ jobs: macos: - runs-on: macOS-latest + runs-on: macos-latest strategy: max-parallel: 4 matrix: - python-version: [3.7] + python-version: [3.7, 3.8, 3.9] steps: - uses: actions/checkout@v1 @@ -118,12 +116,13 @@ jobs: python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot + windows: runs-on: windows-2019 strategy: max-parallel: 4 matrix: - python-version: [3.7] + python-version: [3.7, 3.8, 3.9] steps: - uses: actions/checkout@v1 diff --git a/ot/utils.py b/ot/utils.py index f881e69..544c569 100644 --- a/ot/utils.py +++ b/ot/utils.py @@ -237,7 +237,7 @@ def fun(f, q_in, q_out): def parmap(f, X, nprocs=multiprocessing.cpu_count()): """ paralell map for multiprocessing (only map on windows)""" - if not sys.platform.endswith('win32'): + if not sys.platform.endswith('win32') and not sys.platform.endswith('darwin'): q_in = multiprocessing.Queue(1) q_out = multiprocessing.Queue() |