Skip to content

ci

ci #11

Workflow file for this run

name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.14]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
- name: Install build tools
run: python -m pip install --upgrade pip build setuptools wheel
- name: Install package and test deps (editable)
run: python -m pip install -e ./GabesPythonToolBox[testing]
- name: Debug import and sys.path
run: |
python - <<'PY'
import sys, traceback, os

Check failure on line 38 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 38
print("cwd:", os.getcwd())
print("env PYTHONPATH:", os.environ.get("PYTHONPATH"))
print("sys.path (first 10):")
for p in sys.path[:10]:
print(" ", p)
try:
import GabesPythonToolBox
print("Imported GabesPythonToolBox from:", getattr(GabesPythonToolBox, "__file__", repr(GabesPythonToolBox)))
except Exception:
traceback.print_exc()
PY
- name: Ensure repo on PYTHONPATH for tests
run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV
- name: Run tests
run: pytest -q --cov=GabesPythonToolBox --cov-report=xml
- name: Upload coverage to artifact
uses: actions/upload-artifact@v4
with:
name: coverage-xml
path: coverage.xml