Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary PR for CI Testing #43

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
17 changes: 11 additions & 6 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,17 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install dependencies
run: |
$CONDA/bin/conda env update --file environment_all_backends.yml --name base
- name: provision-with-micromamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: environment_all_backends.yml
environment-name: torchquad
cache-downloads: true
- name: Test with pytest
shell: bash -l {0}
run: |
micromamba activate torchquad
cd torchquad/tests
conda install pytest
$CONDA/bin/pip3 install pytest-error-for-skips
$CONDA/bin/pytest -ra --error-for-skips
pip install pytest
pip install pytest-error-for-skips
pytest -ra --error-for-skips
4 changes: 2 additions & 2 deletions environment_all_backends.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ dependencies:
- tqdm>=4.56.0
# Numerical backend installations with CUDA support where possible:
- numpy>=1.19.5
- cudatoolkit>=11.1
- cudatoolkit>=11.8
- pytorch>=1.9=*cuda*
- tensorflow-gpu>=2.6.0
- tensorflow-gpu>=2.10.0
# jaxlib with CUDA support is not available for conda
- pip:
- --find-links https://storage.googleapis.com/jax-releases/jax_releases.html
Expand Down