Skip to content

Commit e261458

Browse files
committed
pytorch 2.4.1, numpy v2, torchvision.
1 parent 3768856 commit e261458

File tree

5 files changed

+403
-215
lines changed

5 files changed

+403
-215
lines changed

.github/workflows/test.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,25 @@ jobs:
1414
- name: Install Poetry
1515
uses: snok/install-poetry@v1
1616
with:
17-
virtualenvs-create: false
18-
virtualenvs-in-project: false
17+
virtualenvs-create: true
18+
virtualenvs-in-project: true
1919
version: 1.8.3
2020
- name: Install poetry and dependencies
2121
# TODO: remove workaround for https://github.com/pytorch/pytorch/issues/100974 once torch upgraded.
2222
run: |
2323
sudo apt-get -yq update && sudo apt-get install -yq libnvidia-compute-535-server nvidia-cuda-dev
2424
git submodule init && \
2525
git submodule update && \
26-
poetry config virtualenvs.create false && \
26+
sed -i "s/torch==[0-9\.]+/torch/g" torchsig/pyproject.toml && \
27+
poetry config virtualenvs.create true && \
2728
poetry install && \
2829
for i in torch torchvision ; do poetry run pip install --no-cache-dir "$i"=="$(grep $i\\s pyproject.toml | grep -Eo '\"[0-9\.]+' | sed 's/\"//g')" || exit 1 ; done
29-
python -c 'import torch' && \
30-
python -c 'import rfml.annotation_utils as annotation_utils' && \
30+
poetry run python -c 'import torch' && \
31+
poetry run python -c 'import rfml.annotation_utils as annotation_utils' && \
3132
poetry run black . --check --force-exclude torchsig
3233
- name: Run e2e test
3334
run: |
34-
mkdir -p testdata && DATA=$(realpath testdata) PYTHON=$(which python3) ./utils/end_to_end_siggen.sh
35+
mkdir -p testdata && \
36+
DATA=$(realpath testdata) ./utils/run_siggen.sh && \
37+
rm -rf $(poetry env info -p) && \
38+
DATA=$(realpath testdata) ./utils/gamutrf_offline_siggen.sh

0 commit comments

Comments
 (0)