@@ -14,25 +14,25 @@ jobs:
1414 uses : actions/setup-python@v4
1515 with :
1616 python-version : ' 3.12'
17- - name : Add conda to system path
18- run : |
19- # $CONDA is an environment variable pointing to the root of the miniconda directory
20- echo $CONDA/bin >> $GITHUB_PATH
17+ - name : Install uv
18+ uses : astral-sh/setup-uv@v1
19+ with :
20+ uv-version : latest
2121 - name : Install dependencies
2222 run : |
23- pip install .
23+ uv pip install .
2424 - name : Lint with flake8
2525 run : |
26- pip install flake8
26+ uv pip install flake8
2727 # stop the build if there are Python syntax errors or undefined names
2828 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
2929 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3030 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3131 - name : Test with pytest
3232 timeout-minutes : 12
3333 run : |
34- pip install torchvision torchinfo
35- pip install pytest
34+ uv pip install torchvision torchinfo
35+ uv pip install pytest
3636 pytest
3737
3838 build-windows :
@@ -46,25 +46,25 @@ jobs:
4646 uses : actions/setup-python@v4
4747 with :
4848 python-version : ' 3.12'
49- - name : Add conda to system path
50- run : |
51- # $CONDA is an environment variable pointing to the root of the miniconda directory
52- echo $CONDA/bin >> $GITHUB_PATH
49+ - name : Install uv
50+ uses : astral-sh/setup-uv@v1
51+ with :
52+ uv-version : latest
5353 - name : Install dependencies
5454 run : |
55- pip install .
55+ uv pip install .
5656 - name : Lint with flake8
5757 run : |
58- pip install flake8
58+ uv pip install flake8
5959 # stop the build if there are Python syntax errors or undefined names
6060 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
6161 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
6262 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
6363 - name : Test with pytest
6464 timeout-minutes : 12
6565 run : |
66- pip install torchvision torchinfo
67- pip install pytest
66+ uv pip install torchvision torchinfo
67+ uv pip install pytest
6868 pytest
6969
7070 build-mac :
@@ -78,25 +78,25 @@ jobs:
7878 uses : actions/setup-python@v4
7979 with :
8080 python-version : ' 3.12'
81- - name : Add conda to system path
82- run : |
83- # $CONDA is an environment variable pointing to the root of the miniconda directory
84- echo $CONDA/bin >> $GITHUB_PATH
81+ - name : Install uv
82+ uses : astral-sh/setup-uv@v1
83+ with :
84+ uv-version : latest
8585 - name : Install dependencies
8686 run : |
87- pip install .
87+ uv pip install .
8888 - name : Lint with flake8
8989 run : |
90- pip install flake8
90+ uv pip install flake8
9191 # stop the build if there are Python syntax errors or undefined names
9292 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
9393 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
9494 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
9595 - name : Test with pytest
9696 timeout-minutes : 12
9797 run : |
98- pip install torchvision torchinfo
99- pip install pytest
98+ uv pip install torchvision torchinfo
99+ uv pip install pytest
100100 pytest --ignore tests/deeplearning/test_hitters.py --ignore tests/deeplearning/test_mnist.py
101101
102102
0 commit comments