File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 uses : conda-incubator/setup-miniconda@v3
1717 with :
1818 miniconda-version : " latest"
19- python-version : " 3.10"
20- channels : defaults,pytorch-nightly
19+ python-version : " 3.13"
2120
2221 - name : Setup nightly version
2322 run : |
2928 - name : Install dependencies
3029 shell : bash -l {0}
3130 run : |
32- conda install -y pytorch torchvision cpuonly -c pytorch- nightly
31+ pip install torch torchvision --index-url https://download. pytorch.org/whl/ nightly/cpu --pre
3332 pip install -r requirements-dev.txt
3433
3534 - name : Build and Publish Conda binaries
Original file line number Diff line number Diff line change 22uv pip uninstall pkg-resources setuptools
33uv pip install setuptools pip wheel
44uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
5- uv pip install -r requirements-dev.txt
6- uv pip install -r docs/requirements.txt
5+ uv pip install -r requirements-dev.txt -r docs/requirements.txt
76uv pip install git+https://github.com/pytorch-ignite/sphinxcontrib-versioning.git
Original file line number Diff line number Diff line change @@ -10,24 +10,23 @@ jobs:
1010 steps :
1111 - uses : actions/checkout@v6
1212
13- - name : Setup Miniconda
14- uses : conda-incubator /setup-miniconda@v3
13+ - name : Setup uv
14+ uses : astral-sh /setup-uv@v5
1515 with :
16- miniconda-version : " latest"
17- python-version : " 3.10"
16+ version : " latest"
17+ python-version : " 3.13"
18+ activate-environment : true
1819
1920 - name : Install dependencies
20- shell : bash -l {0}
2121 run : |
22- conda install -y pytorch torchvision cpuonly -c pytorch
23- pip install -r requirements-dev.txt
22+ uv pip install torch torchvision --index-url https://download. pytorch.org/whl/cpu
23+ uv pip install -r requirements-dev.txt
2424
2525 - name : Build and Publish PyPI binaries
26- shell : bash -l {0}
2726 run : |
2827 # workaround to fix https://github.com/pytorch/ignite/issues/2373
29- pip uninstall -y twine pkginfo
30- pip install --upgrade --no-cache-dir hatch twine 'pkginfo>=1.8.2'
28+ uv pip uninstall -y twine pkginfo
29+ uv pip install --upgrade --no-cache-dir hatch twine 'pkginfo>=1.8.2'
3130 hatch build
3231 twine --version
3332 twine check dist/*
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ version=$(sed -nE 's/__version__ = "(.*)"/\1/p' ignite/__init__.py)
2525sed -i " s/__version__ = \" \(.*\)\" /__version__ = \" $version \" /g" conda.recipe/meta.yaml
2626cat conda.recipe/meta.yaml | grep version
2727
28- conda install -y conda-build conda-verify anaconda-client conda-package-handling
28+ conda install -y conda-build anaconda-client conda-package-handling
2929conda config --set anaconda_upload no
3030
3131conda build --no-test --output-folder conda_build conda.recipe -c pytorch --package-format 1
You can’t perform that action at this time.
0 commit comments