Fix CI: use shell steps instead of JS actions (Alpine runner has no node)
This commit is contained in:
+14
-11
@@ -10,24 +10,27 @@ jobs:
|
|||||||
checks:
|
checks:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Install Python and tools
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
apk add --no-cache python3 py3-pip git
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Checkout
|
||||||
uses: actions/setup-python@v5
|
run: |
|
||||||
with:
|
git init -q
|
||||||
python-version: "3.12"
|
git remote add origin "${GITHUB_SERVER_URL:-http://10.8.0.52:8080}/$GITHUB_REPOSITORY.git"
|
||||||
|
git fetch -q --depth 1 origin "$GITHUB_SHA"
|
||||||
|
git checkout -q FETCH_HEAD
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
python -m pip install -e ".[dev]"
|
python3 -m pip install -e ".[dev]"
|
||||||
|
|
||||||
- name: Lint (ruff)
|
- name: Lint (ruff)
|
||||||
run: ruff check src tests
|
run: python3 -m ruff check src tests
|
||||||
|
|
||||||
- name: Typecheck (mypy)
|
- name: Typecheck (mypy)
|
||||||
run: mypy src
|
run: python3 -m mypy src
|
||||||
|
|
||||||
- name: Tests (pytest + coverage)
|
- name: Tests (pytest + coverage)
|
||||||
run: python -m pytest -v --cov=selectel_ml_tui --cov-report=term-missing
|
run: python3 -m pytest -v --cov=selectel_ml_tui --cov-report=term-missing
|
||||||
Reference in New Issue
Block a user