Skip to content

Commit

Permalink
Add conda tests to the "Test against stable" workflow (#720)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Balandat authored and facebook-github-bot committed Feb 23, 2021
1 parent 2fe7d00 commit 924d848
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/test_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:

tests-and-coverage:
tests-and-coverage-pip-stable:
name: Tests and coverage (pip, Python ${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -26,3 +26,30 @@ jobs:
- name: Unit tests and coverage
run: |
pytest -ra --cov=. --cov-report term-missing
tests-conda-stable:
name: Tests (conda, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.7", "3.8"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: test
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash -l {0}
run: |
conda install -y -c pytorch pytorch cpuonly
conda install -y pip scipy pytest
conda install -y -c gpytorch gpytorch
pip install .[test]
- name: Unit tests
shell: bash -l {0}
run: |
pytest -ra

0 comments on commit 924d848

Please sign in to comment.