@@ -17,30 +17,24 @@ jobs:
1717 steps :
1818 - uses : actions/checkout@v4
1919
20+ - name : Set up uv
21+ uses : astral-sh/setup-uv@v5
22+ with :
23+ version : " latest"
24+
2025 - name : Set up Python
2126 uses : actions/setup-python@v5
2227 with :
2328 python-version : " 3.11"
2429
25- - name : Install Python dependencies
26- run : |
27- python -m pip install --upgrade pip
28- pip install -r requirements/requirements-ubuntu-latest_py3.11.txt
29- pip install -r requirements/requirements-ubuntu-latest_py3.11_extras.txt
30-
3130 - name : Install dependencies
3231 run : |
33- pip install pre-commit
32+ uv pip install --system -r requirements/requirements-ubuntu-latest_py3.11.txt
33+ uv pip install --system -r requirements/requirements-ubuntu-latest_py3.11_extras.txt
34+ uv pip install --system pre-commit ty
3435
3536 - name : Run pre-commit
36- run : |
37- pre-commit run --all-files --show-diff-on-failure
38-
39- - name : Run mypy
40- run : |
41- mypy --version
42- rm -rf .mypy_cache
43- mypy src/atomicds
37+ run : pre-commit run --all-files --show-diff-on-failure
4438
4539 test :
4640 needs : lint
@@ -55,16 +49,20 @@ jobs:
5549 steps :
5650 - uses : actions/checkout@v4
5751
52+ - name : Set up uv
53+ uses : astral-sh/setup-uv@v5
54+ with :
55+ version : " latest"
56+
5857 - name : Set up Python ${{ matrix.python-version }}
5958 uses : actions/setup-python@v5
6059 with :
6160 python-version : ${{ matrix.python-version }}
6261
63- - name : Install Python dependencies
62+ - name : Install dependencies
6463 run : |
65- python -m pip install --upgrade pip
66- pip install -r requirements/requirements-${{ matrix.os }}_py${{ matrix.python-version }}.txt
67- pip install -r requirements/requirements-${{ matrix.os }}_py${{ matrix.python-version }}_extras.txt
64+ uv pip install --system -r requirements/requirements-${{ matrix.os }}_py${{ matrix.python-version }}.txt
65+ uv pip install --system -r requirements/requirements-${{ matrix.os }}_py${{ matrix.python-version }}_extras.txt
6866
6967 - name : Set SSL_CERT_FILE (Linux/MacOS)
7068 if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
@@ -74,13 +72,14 @@ jobs:
7472 if : matrix.os == 'windows-latest'
7573 run : echo "SSL_CERT_FILE=$(python -m certifi)" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
7674
75+ - name : Install package
76+ run : uv pip install --system -e .
77+
7778 - name : Test with pytest
7879 env :
7980 AS_API_KEY : ${{ secrets.AS_API_KEY }}
8081 AS_API_ENDPOINT : " https://api.atomscale.ai"
81- run : |
82- pip install -e .
83- pytest -x
82+ run : pytest -x
8483
8584 auto-gen-release :
8685 needs : test
0 commit comments