Skip to content

Commit

Permalink
finally?
Browse files Browse the repository at this point in the history
  • Loading branch information
CompRhys committed Oct 8, 2024
1 parent 751dc3d commit 76eddd9
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:

- name: Install remaining dependencies, Python ${{ matrix.python-version }}
run: |
uv pip install -e ".[optimization,tests,cheminfo,xgb,entmoot]"
uv pip install -e ".[optimization,tests,cheminfo,xgb,entmoot]" --system
- name: Run tests, Python ${{ matrix.python-version }}
shell: bash -l {0}
Expand All @@ -79,6 +79,9 @@ jobs:
testing_against_latest_botorch:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10' ]
steps:
- name: Check out repo
uses: actions/checkout@v4
Expand All @@ -89,7 +92,7 @@ jobs:
miniconda-version: "latest"
activate-environment: test
auto-activate-base: false # Prevent automatic activation of the base environment
python-version: "3.10"
python-version: ${{ matrix.python-version }}

# Run `conda init` to initialize shell for conda
- name: Initialize Conda
Expand All @@ -99,7 +102,7 @@ jobs:
source ~/.bashrc # Reload shell configuration after running `conda init`
conda activate test
- name: Install conda-only dependencies
- name: Install conda-only dependencies, Python ${{ matrix.python-version }}
shell: bash -l {0}
run: |
conda activate test
Expand All @@ -110,14 +113,14 @@ jobs:
with:
enable-cache: true

- name: Install remaining dependencies
- name: Install remaining dependencies, Python ${{ matrix.python-version }}
run: |
conda activate test
uv pip install --upgrade git+https://github.com/cornellius-gp/linear_operator.git
uv pip install --upgrade git+https://github.com/cornellius-gp/gpytorch.git
uv pip install --upgrade git+https://github.com/cornellius-gp/linear_operator.git --system
uv pip install --upgrade git+https://github.com/cornellius-gp/gpytorch.git --system
export ALLOW_LATEST_GPYTORCH_LINOP=true
uv pip install --upgrade git+https://github.com/pytorch/botorch.git
uv pip install ".[optimization,tests,cheminfo,xgb,entmoot]"
uv pip install --upgrade git+https://github.com/pytorch/botorch.git --system
uv pip install ".[optimization,tests,cheminfo,xgb,entmoot]" --system
- name: Run tests, Python ${{ matrix.python-version }}
shell: bash -l {0}
Expand All @@ -127,6 +130,9 @@ jobs:
testing_tutorials:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10' ]
steps:
- name: Check out repo
uses: actions/checkout@v4
Expand All @@ -137,7 +143,7 @@ jobs:
miniconda-version: "latest"
activate-environment: test
auto-activate-base: false # Prevent automatic activation of the base environment
python-version: "3.10"
python-version: ${{ matrix.python-version }}

# Run `conda init` to initialize shell for conda
- name: Initialize Conda
Expand All @@ -146,7 +152,7 @@ jobs:
conda init bash
source ~/.bashrc # Reload shell configuration after running `conda init`
- name: Install conda-only dependencies
- name: Install conda-only dependencies, Python ${{ matrix.python-version }}
shell: bash -l {0}
run: |
conda activate test
Expand All @@ -157,12 +163,12 @@ jobs:
with:
enable-cache: true

- name: Install remaining dependencies
- name: Install remaining dependencies, Python ${{ matrix.python-version }}
run: |
conda activate test
uv pip install ".[optimization,tests,cheminfo,xgb,entmoot,tutorials]"
uv pip install ".[optimization,tests,cheminfo,xgb,entmoot,tutorials]" --system
- name: Run notebooks
- name: Run notebooks, Python ${{ matrix.python-version }}
shell: bash -l {0}
run: |
conda activate test
Expand Down

0 comments on commit 76eddd9

Please sign in to comment.