@@ -13,55 +13,51 @@ jobs:
1313 fail-fast : false
1414 matrix :
1515 os : [ubuntu-latest, macos-latest, windows-latest]
16- python : [3.8, 3.9, '3.10', 3.11]
16+ python : [3.8, 3.9, '3.10', 3.11, 3.12]
17+ exclude :
18+ - os : macos-latest
19+ python : 3.8
20+ - os : macos-latest
21+ python : 3.9
22+ - os : macos-latest
23+ python : ' 3.10'
1724 steps :
18- - uses : actions/checkout@v2
19- - uses : actions/setup-python@v4
25+ - uses : actions/checkout@v4
26+ - uses : actions/setup-python@v5
2027 with :
2128 python-version : ${{ matrix.python }}
2229 architecture : x64
23- - name : Cache python modules
24- uses : actions/cache@v2
25- with :
26- path : ~/.cache/pip
27- key : ${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-build
2830 - name : Install package
2931 run : |
30- python -m pip install --upgrade pip
31- pip install -e .
32+ python -m pip install --upgrade uv
33+ uv pip install --system -e .
3234 - name : Import package
3335 run : python -c "import torchscan; print(torchscan.__version__)"
3436
3537 pypi :
3638 runs-on : ubuntu-latest
3739 steps :
38- - uses : actions/checkout@v2
39- - name : Set up Python
40- uses : actions/setup-python@v4
40+ - uses : actions/checkout@v4
41+ - uses : actions/setup-python@v5
4142 with :
42- python-version : 3.9
43+ python-version : 3.11
4344 architecture : x64
44- - name : Cache python modules
45- uses : actions/cache@v2
46- with :
47- path : ~/.cache/pip
48- key : ${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-build
4945 - name : Install dependencies
5046 run : |
51- python -m pip install --upgrade pip
52- pip install setuptools wheel twine --upgrade
47+ python -m pip install --upgrade uv
48+ uv pip install --system setuptools wheel twine --upgrade
5349 - run : |
5450 python setup.py sdist bdist_wheel
5551 twine check dist/*
5652
5753 conda :
5854 runs-on : ubuntu-latest
5955 steps :
60- - uses : actions/checkout@v2
61- - uses : conda-incubator/setup-miniconda@v2
56+ - uses : actions/checkout@v4
57+ - uses : conda-incubator/setup-miniconda@v3
6258 with :
6359 auto-update-conda : true
64- python-version : " 3.9 "
60+ python-version : " 3.11 "
6561 - name : Install dependencies
6662 shell : bash -el {0}
6763 run : conda install -y conda-build conda-verify
0 commit comments