Skip to content

Commit 986ec83

Browse files
authored
Use pip install --user to prevent pip 22.0.2 errors (#293)
* Use pip install --user to prevent pip 22.0.2 errors * Use python -m for tooling * Fix
1 parent dec1e49 commit 986ec83

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
env:
8080
COLOR: 'yes'
8181
run: |
82-
pytest tests
82+
python -m pytest tests
8383
python -m coverage xml
8484
- name: Upload coverage
8585
uses: codecov/codecov-action@v1

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
test: lint
2-
pytest tests
2+
python -m pytest tests
33

44
lint: fmt
5-
mypy
5+
python -m mypy
66

77
fmt:
88
ifdef CI
9-
pre-commit run --all-files --show-diff-on-failure
9+
python -m pre_commit run --all-files --show-diff-on-failure
1010
else
11-
pre-commit run --all-files
11+
python -m pre_commit run --all-files
1212
endif
1313

1414

1515
check:
1616
python -m build
17-
twine check dist/*
17+
python -m twine check dist/*
1818

1919
install:
20-
pip install -U pip
21-
pip install -r requirements.txt
20+
python -m pip install --user -U pip
21+
python -m pip install --user -r requirements.txt

0 commit comments

Comments
 (0)