|
10 | 10 | jobs:
|
11 | 11 |
|
12 | 12 | 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 |
43 | 18 |
|
44 | 19 | tests-conda:
|
45 | 20 | name: Tests (conda, ${{ matrix.os }})
|
|
68 | 43 | pip install git+https://github.com/cornellius-gp/linear_operator.git
|
69 | 44 | pip install git+https://github.com/cornellius-gp/gpytorch.git
|
70 | 45 | 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 |
72 | 51 | shell: bash -l {0}
|
73 | 52 | run: |
|
74 |
| - pytest -ra |
| 53 | + pytest -ra test_community/ |
0 commit comments