Skip to content

Commit cc0f030

Browse files
authored
Update test.yml
1 parent f1fe932 commit cc0f030

File tree

1 file changed

+11
-32
lines changed

1 file changed

+11
-32
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,11 @@ on:
1010
jobs:
1111

1212
tests-and-coverage-pip:
13-
name: Tests+coverage (pip, py${{ matrix.python-version }}, ${{ matrix.os }})
14-
runs-on: ${{ matrix.os }}
15-
strategy:
16-
fail-fast: false
17-
matrix:
18-
os: ["ubuntu-latest", "macos-14", "windows-latest"]
19-
python-version: ["3.10", "3.12"]
20-
steps:
21-
- uses: actions/checkout@v4
22-
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v5
24-
with:
25-
python-version: ${{ matrix.python-version }}
26-
- name: Install dependencies
27-
env:
28-
ALLOW_LATEST_GPYTORCH_LINOP: true
29-
run: |
30-
pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
31-
pip install git+https://github.com/cornellius-gp/linear_operator.git
32-
pip install git+https://github.com/cornellius-gp/gpytorch.git
33-
pip install .[test]
34-
- name: Unit tests and coverage
35-
run: |
36-
pytest -ra --cov=. --cov-report term-missing
37-
- name: Upload coverage
38-
if: ${{ runner.os == 'Linux' && matrix.python-version == 3.10 }}
39-
uses: codecov/codecov-action@v4
40-
with:
41-
fail_ci_if_error: true
42-
token: ${{ secrets.CODECOV_TOKEN }}
13+
name: Test & Coverage (pip)
14+
uses: ./.github/workflows/reusable_test_pip.yml
15+
with:
16+
use_latest_pytorch_gpytorch: true
17+
secrets: inherit
4318

4419
tests-conda:
4520
name: Tests (conda, ${{ matrix.os }})
@@ -68,7 +43,11 @@ jobs:
6843
pip install git+https://github.com/cornellius-gp/linear_operator.git
6944
pip install git+https://github.com/cornellius-gp/gpytorch.git
7045
pip install .[test]
71-
- name: Unit tests
46+
- name: Unit tests: BoTorch
47+
shell: bash -l {0}
48+
run: |
49+
pytest -ra test/
50+
- name: Unit tests: BoTorch Community
7251
shell: bash -l {0}
7352
run: |
74-
pytest -ra
53+
pytest -ra test_community/

0 commit comments

Comments
 (0)