fix: use apk package manager instead of apt-get
Some checks failed
CI / test (push) Failing after 1s
Some checks failed
CI / test (push) Failing after 1s
This commit is contained in:
@@ -8,19 +8,18 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check /opt
|
||||
- name: Check Python via apk
|
||||
run: |
|
||||
ls -la /opt/ 2>/dev/null || echo "No /opt"
|
||||
ls -la /home/ 2>/dev/null || echo "No /home"
|
||||
df -h
|
||||
- name: Check env
|
||||
apk add --no-cache python3 py3-pip
|
||||
- name: Verify Python
|
||||
run: |
|
||||
echo "HOME=$HOME"
|
||||
echo "PATH=$PATH"
|
||||
echo "USER=$(whoami)"
|
||||
- name: Check installed packages
|
||||
run: |
|
||||
dpkg -l | grep -i python || echo "No python packages found"
|
||||
- name: Try pip
|
||||
run: |
|
||||
pip3 install -e ".[dev]" || pip install -e ".[dev]" || echo "pip not available"
|
||||
python3 --version
|
||||
pip3 --version
|
||||
- name: Install deps
|
||||
run: pip3 install -e ".[dev]"
|
||||
- name: Lint
|
||||
run: ruff check src/
|
||||
- name: Type check
|
||||
run: mypy src/
|
||||
- name: Test
|
||||
run: pytest tests/ -v
|
||||
Reference in New Issue
Block a user