From 6c1e1f3e064165d37e22acc866c6fff56e3ab6ad Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Fri, 9 Jun 2023 20:26:52 +0200 Subject: [MRG] Update tests and documentation (#484) * remove old macos and windows tets update requirements * speedup ssw and continuaous ot exmaples * speedup regpath and variane * speedup conv 2d example + continuous stick * speedup regpath --- .github/workflows/build_tests.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to '.github') diff --git a/.github/workflows/build_tests.yml b/.github/workflows/build_tests.yml index a2d26f1..a5e876b 100644 --- a/.github/workflows/build_tests.yml +++ b/.github/workflows/build_tests.yml @@ -83,7 +83,7 @@ jobs: pip install -e . - name: Run tests run: | - python -m pytest --durations=20 -v test/ ot/ --ignore ot/gpu/ --color=yes + python -m pytest --durations=20 -v test/ ot/ --color=yes macos: @@ -92,7 +92,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.10"] steps: - uses: actions/checkout@v1 @@ -107,10 +107,10 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install pytest "pytest-cov<2.6" + pip install pytest - name: Run tests run: | - python -m pytest --durations=20 -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot --color=yes + python -m pytest --durations=20 -v test/ ot/ --color=yes windows: @@ -119,7 +119,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.10"] steps: - uses: actions/checkout@v1 @@ -151,8 +151,8 @@ jobs: - name: Install dependencies run: | python -m pip install -r .github/requirements_test_windows.txt - python -m pip install torch==1.8.1+cpu -f https://download.pytorch.org/whl/torch_stable.html - python -m pip install pytest "pytest-cov<2.6" + python -m pip3 install torch torchvision torchaudio + python -m pip install pytest - name: Run tests run: | - python -m pytest --durations=20 -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot --color=yes + python -m pytest --durations=20 -v test/ ot/ --color=yes -- cgit v1.2.3