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:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check /opt
|
- name: Check Python via apk
|
||||||
run: |
|
run: |
|
||||||
ls -la /opt/ 2>/dev/null || echo "No /opt"
|
apk add --no-cache python3 py3-pip
|
||||||
ls -la /home/ 2>/dev/null || echo "No /home"
|
- name: Verify Python
|
||||||
df -h
|
|
||||||
- name: Check env
|
|
||||||
run: |
|
run: |
|
||||||
echo "HOME=$HOME"
|
python3 --version
|
||||||
echo "PATH=$PATH"
|
pip3 --version
|
||||||
echo "USER=$(whoami)"
|
- name: Install deps
|
||||||
- name: Check installed packages
|
run: pip3 install -e ".[dev]"
|
||||||
run: |
|
- name: Lint
|
||||||
dpkg -l | grep -i python || echo "No python packages found"
|
run: ruff check src/
|
||||||
- name: Try pip
|
- name: Type check
|
||||||
run: |
|
run: mypy src/
|
||||||
pip3 install -e ".[dev]" || pip install -e ".[dev]" || echo "pip not available"
|
- name: Test
|
||||||
|
run: pytest tests/ -v
|
||||||
Reference in New Issue
Block a user