Skip to content

3.14

3.14 #9

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 dependencies
run: python -m pip install --upgrade pip build
- name: Install package and test deps
run: python -m pip install -e ".[testing]"
- name: Install package and test deps (verbose)
run: |
python -m pip install --upgrade pip setuptools wheel -v
# verbose install, capture output
python -m pip install -v -e ./GabesPythonToolBox[testing] || python -m pip install -v -e ./GabesPythonToolBox || true
echo "=== pip list ==="
python -m pip list
echo "=== pip show package ==="
python -m pip show GabesPythonToolBox || python -m pip show GabesPythonToolBox || true
echo "=== installed modules (top-level) ==="
python - <<'PY'
import pkgutil, sys

Check failure on line 41 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 41
mods = sorted(x.name for x in pkgutil.iter_modules())
print("modules count:", len(mods))
for m in mods[:200]:
print(m)
PY
- name: Debug import and sys.path
run: |
python - <<'PY'
import sys, traceback, os
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