Skip to content

Commit 0161582

Browse files
Balandatfacebook-github-bot
authored andcommitted
Use linear_operator latest main for testing in GHA. (#1381)
Summary: Ensure that things are compatible with the linear_operator bleeding edge. Also cleans up some old todos in the workflow configs. Pull Request resolved: #1381 Reviewed By: danielrjiang Differential Revision: D39335499 Pulled By: Balandat fbshipit-source-id: 80e931d0294619f97a0f7c249ce8f85609afcd68
1 parent 4a98917 commit 0161582

File tree

6 files changed

+16
-13
lines changed

6 files changed

+16
-13
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ jobs:
2020
- name: Set up Python
2121
uses: actions/setup-python@v2
2222
with:
23-
python-version: 3.8
23+
python-version: "3.8"
2424
- name: Install dependencies
2525
run: |
26+
pip install git+https://github.com/cornellius-gp/linear_operator.git
2627
pip install git+https://github.com/cornellius-gp/gpytorch.git
2728
pip install .[dev]
28-
# NOTE: nbconvert 6.4.4 is incompatible with jinja2 3.1.0.
29-
# We can unpin this with a future release of nbconvert.
30-
pip install beautifulsoup4 ipython nbconvert "jinja2==3.0.3"
29+
pip install beautifulsoup4 ipython nbconvert jinja2
3130
- name: Validate Sphinx
3231
run: |
3332
python scripts/validate_sphinx.py -p "$(pwd)"

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Python
2121
uses: actions/setup-python@v2
2222
with:
23-
python-version: 3.8
23+
python-version: "3.8"
2424
- name: Install dependencies
2525
run: |
2626
# pin dependencies to match Meta-internal versions
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up Python
4141
uses: actions/setup-python@v2
4242
with:
43-
python-version: 3.8
43+
python-version: "3.8"
4444
- name: Install dependencies
4545
run: |
4646
pip install flake8 flake8-docstrings

.github/workflows/nightly.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- name: Install dependencies
2626
run: |
2727
pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
28+
pip install git+https://github.com/cornellius-gp/linear_operator.git
2829
pip install git+https://github.com/cornellius-gp/gpytorch.git
2930
pip install .[test]
3031
- name: Unit tests and coverage
@@ -51,6 +52,7 @@ jobs:
5152
- name: Install dependencies
5253
run: |
5354
pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
55+
pip install git+https://github.com/cornellius-gp/linear_operator.git
5456
pip install git+https://github.com/cornellius-gp/gpytorch.git
5557
pip install .[test]
5658
pip install --upgrade build setuptools setuptools_scm wheel
@@ -97,7 +99,8 @@ jobs:
9799
conda install -y scipy setuptools_scm conda-build conda-verify
98100
conda config --set anaconda_upload no
99101
conda install -y -c pytorch-nightly pytorch cpuonly
100-
conda install -y -c conda-forge pyro-ppl>=1.8.0
102+
conda install -y -c conda-forge pyro-ppl>=1.8.2
103+
pip install git+https://github.com/cornellius-gp/linear_operator.git
101104
pip install git+https://github.com/cornellius-gp/gpytorch.git
102105
- name: Build and verify conda package
103106
shell: bash -l {0}
@@ -120,13 +123,11 @@ jobs:
120123
run: git fetch --prune --unshallow
121124
- name: Install dependencies
122125
run: |
126+
pip install git+https://github.com/cornellius-gp/linear_operator.git
123127
pip install git+https://github.com/cornellius-gp/gpytorch.git
124128
pip install .[dev]
125129
pip install git+https://github.com/facebook/Ax.git
126-
# NOTE: nbconvert 6.4.4 is incompatible with jinja2 3.1.0.
127-
# We can unpin this with a future release of nbconvert.
128-
pip install beautifulsoup4 ipython nbconvert "jinja2==3.0.3"
129-
- name: Unit tests
130+
pip install beautifulsoup4 ipython nbconvert jinja2
130131
run: |
131132
pytest -ra
132133
- name: Publish latest website

.github/workflows/reusable_tutorials.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ jobs:
2525
- name: Set up Python
2626
uses: actions/setup-python@v2
2727
with:
28-
python-version: 3.8
28+
python-version: "3.8"
2929
- name: Fetch all history for all tags and branches
3030
# We need to do this so setuptools_scm knows how to set the BoTorch version.
3131
run: git fetch --prune --unshallow
3232
- if: ${{ !inputs.use_stable_pytorch_gpytorch }}
3333
name: Install latest PyTorch & GPyTorch
3434
run: |
3535
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
36+
pip install git+https://github.com/cornellius-gp/linear_operator.git
3637
pip install git+https://github.com/cornellius-gp/gpytorch.git
3738
- if: ${{ inputs.use_stable_pytorch_gpytorch }}
3839
name: Install min required PyTorch & GPyTorch

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- name: Install dependencies
2828
run: |
2929
pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
30+
pip install git+https://github.com/cornellius-gp/linear_operator.git
3031
pip install git+https://github.com/cornellius-gp/gpytorch.git
3132
pip install .[test]
3233
- name: Unit tests and coverage
@@ -57,6 +58,7 @@ jobs:
5758
run: |
5859
conda install -y -c pytorch-nightly pytorch cpuonly
5960
conda install -y pip scipy sphinx pytest flake8
61+
pip install git+https://github.com/cornellius-gp/linear_operator.git
6062
pip install git+https://github.com/cornellius-gp/gpytorch.git
6163
pip install .[test]
6264
- name: Unit tests

.github/workflows/test_stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
conda install -y -c pytorch pytorch cpuonly
4949
conda install -y pip scipy pytest
5050
conda install -y -c gpytorch gpytorch
51-
conda install -y -c conda-forge pyro-ppl>=1.8.0
51+
conda install -y -c conda-forge pyro-ppl>=1.8.2
5252
pip install .[test]
5353
- name: Unit tests
5454
shell: bash -l {0}

0 commit comments

Comments
 (0)