Skip to content

Commit 924d848

Browse files
Balandatfacebook-github-bot
authored andcommitted
Add conda tests to the "Test against stable" workflow (#720)
Summary: Makes it easier to automatically verify that comda packages for deps are available and updated to the latest version. Pull Request resolved: #720 Reviewed By: dme65 Differential Revision: D26616005 Pulled By: Balandat fbshipit-source-id: 640f28a54ca25a669e473bb4310bbe998a499cec
1 parent 2fe7d00 commit 924d848

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/test_stable.yml

+28-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77

8-
tests-and-coverage:
8+
tests-and-coverage-pip-stable:
99
name: Tests and coverage (pip, Python ${{ matrix.python-version }}, ${{ matrix.os }})
1010
runs-on: ${{ matrix.os }}
1111
strategy:
@@ -26,3 +26,30 @@ jobs:
2626
- name: Unit tests and coverage
2727
run: |
2828
pytest -ra --cov=. --cov-report term-missing
29+
30+
tests-conda-stable:
31+
name: Tests (conda, ${{ matrix.os }})
32+
runs-on: ${{ matrix.os }}
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
37+
python-version: ["3.7", "3.8"]
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: conda-incubator/setup-miniconda@v2
41+
with:
42+
miniconda-version: "latest"
43+
activate-environment: test
44+
python-version: ${{ matrix.python-version }}
45+
- name: Install dependencies
46+
shell: bash -l {0}
47+
run: |
48+
conda install -y -c pytorch pytorch cpuonly
49+
conda install -y pip scipy pytest
50+
conda install -y -c gpytorch gpytorch
51+
pip install .[test]
52+
- name: Unit tests
53+
shell: bash -l {0}
54+
run: |
55+
pytest -ra

0 commit comments

Comments
 (0)