fix: resolve CI apt-get pip installation issues
Some checks failed
CI / test (push) Successful in 9m34s
CI / lint (push) Failing after 4m44s
CI / typecheck (push) Failing after 4m47s

Use 'python -m pip' and 'python -m pytest' commands for better
compatibility with Gitea Actions environment
This commit is contained in:
2026-02-04 21:37:36 +00:00
parent 78595e8a3f
commit 4a7d4144c6

View File

@@ -21,11 +21,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install pytest pytest-cov
pip install -e .
python -m pip install pytest pytest-cov
python -m pip install -e .
- name: Run tests
run: pytest confsync/tests/ -v --tb=short
run: python -m pytest confsync/tests/ -v --tb=short
lint:
runs-on: ubuntu-latest
@@ -39,10 +39,10 @@ jobs:
cache: 'pip'
- name: Install ruff
run: pip install ruff
run: python -m pip install ruff
- name: Run ruff
run: ruff check .
run: python -m ruff check .
typecheck:
runs-on: ubuntu-latest
@@ -56,7 +56,7 @@ jobs:
cache: 'pip'
- name: Install mypy
run: pip install mypy
run: python -m pip install mypy
- name: Run mypy
run: mypy confsync/ --ignore-missing-imports
run: python -m mypy confsync/ --ignore-missing-imports