Skip to content

Transform y into 2D tensor when y.ndim == 1 and likelihood == REGRESSION #13

Transform y into 2D tensor when y.ndim == 1 and likelihood == REGRESSION

Transform y into 2D tensor when y.ndim == 1 and likelihood == REGRESSION #13

name: pytest-with-asdfghjkl
on: pull_request
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/0.3.0/install.sh | sh
- name: Set up Python
run: uv python install 3.9
- name: Install the project
run: |
uv venv && source .venv/bin/activate
uv pip install --index-url https://download.pytorch.org/whl/cpu torch==2.4.0+cpu torchvision==0.19.0+cpu torchaudio==2.4.0+cpu
uv pip install -r pyproject.toml --extra dev --override uv_overrides.txt
- name: Install the old asdfghjkl
run: uv pip install git+https://git@github.com/wiseodd/asdl@asdfghjkl
- name: Test with pytest
run: |
source .venv/bin/activate
python3 -m pytest tests