| 1 | name: Tests CUDA |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | pull_request_review: |
| 6 | types: [submitted] |
| 7 | |
| 8 | jobs: |
| 9 | linux-cuda: |
| 10 | |
| 11 | runs-on: pc-cuda |
| 12 | if: github.event.review.state == 'approved' || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/master') |
| 13 | |
| 14 | steps: |
| 15 | - uses: actions/checkout@v4 |
| 16 | - name: Install POT |
| 17 | run: | |
| 18 | python3.10 -m pip install --upgrade pip setuptools |
| 19 | python3.10 -m pip install --ignore-installed -e . |
| 20 | - name: Run tests |
| 21 | run: | |
| 22 | python3.10 -m pytest --durations=20 -v test/ ot/ --doctest-modules --color=yes --ignore=test/test_dr.py --ignore=ot.dr --ignore=ot.plot |
| 23 |