Skip to content

Commit ec5bc55

Browse files
authored
Stop installing into CI's system (#1346)
* Stop installing into CI's system We're starting to get permission denied errors when installing with --system. * Pin Pyright * Simplify * Fix typo
1 parent 2f1014a commit ec5bc55

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,17 @@ jobs:
7070
echo DO_MYPY=$DO_MYPY >>$GITHUB_ENV
7171
echo TOX_PYTHON=py$(echo $V | tr -d .) >>$GITHUB_ENV
7272
73-
uv pip install --system tox
74-
75-
- run: uv pip install --system tox-uv
76-
77-
- run: python -Im tox run -e ${{ env.TOX_PYTHON }}-mypy
73+
- run: >
74+
uvx --with=tox-uv
75+
tox run
76+
-e ${{ env.TOX_PYTHON }}-mypy
7877
if: env.DO_MYPY == '1'
7978
8079
- name: Remove src to ensure tests run against wheel
8180
run: rm -rf src
8281

8382
- run: >
84-
python -Im
83+
uvx --with=tox-uv
8584
tox run
8685
--installpkg dist/*.whl
8786
-e ${{ env.TOX_PYTHON }}-tests
@@ -121,10 +120,8 @@ jobs:
121120
allow-prereleases: true
122121
- uses: hynek/setup-cached-uv@v2
123122

124-
- run: uv pip install --system tox-uv
125-
126123
- run: >
127-
python -Im
124+
uvx --with=tox-uv
128125
tox run
129126
--installpkg dist/*.whl
130127
-e pypy3-tests
@@ -154,16 +151,16 @@ jobs:
154151

155152
- name: Combine coverage & fail if it's <100%.
156153
run: |
157-
uv pip install --system coverage[toml]
154+
uv tool install 'coverage[toml]'
158155
159-
python -Im coverage combine
160-
python -Im coverage html --skip-covered --skip-empty
156+
coverage combine
157+
coverage html --skip-covered --skip-empty
161158
162159
# Report and write to summary.
163-
python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
160+
coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
164161
165162
# Report again and fail if under 100%.
166-
python -Im coverage report --fail-under=100
163+
coverage report --fail-under=100
167164
168165
- name: Upload HTML report if check failed.
169166
uses: actions/upload-artifact@v4
@@ -189,8 +186,7 @@ jobs:
189186
python-version: "3.12"
190187
- uses: hynek/setup-cached-uv@v2
191188

192-
- run: uv pip install --system tox-uv
193-
- run: python -Im tox run -e docs,changelog
189+
- run: uvx --with=tox-uv tox run -e docs,changelog
194190

195191
pyright:
196192
name: Check types using pyright
@@ -202,8 +198,7 @@ jobs:
202198
python-version-file: .python-version-default
203199
- uses: hynek/setup-cached-uv@v2
204200

205-
- run: uv pip install --system tox-uv
206-
- run: python -Im tox run -e pyright
201+
- run: uvx --with=tox-uv tox run -e pyright
207202

208203
install-dev:
209204
name: Verify dev env

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ commands =
113113

114114
[testenv:pyright]
115115
extras = tests
116-
deps = pyright
116+
deps = pyright<1.1.380
117117
commands = pytest tests/test_pyright.py -vv
118118

119119

0 commit comments

Comments
 (0)