diff options
author | RĂ©mi Flamary <remi.flamary@gmail.com> | 2023-05-05 13:53:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 13:53:16 +0200 |
commit | 5693a88bc3a8c36f8ac4fdacc419ff2574d1b7bb (patch) | |
tree | c959d95b66563a7b28e3155d52674c186f17bd5e /.github | |
parent | 7e0ea27ad9cad31cfc2181430d837c0a77a61568 (diff) |
[MRG] Add github action test cuda (#473)
* add workflow cuda
* try with conda
* try again conda
* and now?
* proper python version
* cleanup
* try to use proper python
* again?
* cleanup stuff and use python3.10
* remove dr test
* remove docstrng tetss for stoc methods
* add condition for cuda tests
* remove unused files
* upate release file
* debug workflow
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build_tests_cuda.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/build_tests_cuda.yml b/.github/workflows/build_tests_cuda.yml new file mode 100644 index 0000000..f1c2962 --- /dev/null +++ b/.github/workflows/build_tests_cuda.yml @@ -0,0 +1,25 @@ +name: Tests CUDA + +on: + workflow_dispatch: + pull_request_review: + types: [submitted] + push: + branches: + - 'master' # Set a branch to run CI tests on + +jobs: + linux-cuda: + + runs-on: pc-cuda + if: github.event.review.state == 'approved' || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.event.branch == 'master') + + steps: + - uses: actions/checkout@v1 + - name: Install POT + run: | + python3.10 -m pip install --ignore-installed -e . + - name: Run tests + run: | + python3.10 -m pytest --durations=20 -v test/ ot/ --doctest-modules --color=yes --ignore=test/test_dr.py --ignore=ot.dr --ignore=ot.plot + |