@@ -13,55 +13,51 @@ jobs:
13
13
fail-fast : false
14
14
matrix :
15
15
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'
17
24
steps :
18
- - uses : actions/checkout@v2
19
- - uses : actions/setup-python@v4
25
+ - uses : actions/checkout@v4
26
+ - uses : actions/setup-python@v5
20
27
with :
21
28
python-version : ${{ matrix.python }}
22
29
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
28
30
- name : Install package
29
31
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 .
32
34
- name : Import package
33
35
run : python -c "import torchscan; print(torchscan.__version__)"
34
36
35
37
pypi :
36
38
runs-on : ubuntu-latest
37
39
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
41
42
with :
42
- python-version : 3.9
43
+ python-version : 3.11
43
44
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
49
45
- name : Install dependencies
50
46
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
53
49
- run : |
54
50
python setup.py sdist bdist_wheel
55
51
twine check dist/*
56
52
57
53
conda :
58
54
runs-on : ubuntu-latest
59
55
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
62
58
with :
63
59
auto-update-conda : true
64
- python-version : " 3.9 "
60
+ python-version : " 3.11 "
65
61
- name : Install dependencies
66
62
shell : bash -el {0}
67
63
run : conda install -y conda-build conda-verify
0 commit comments