@@ -3,35 +3,13 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python
|
- uses: actions/setup-python@v5
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
- name: Debug imports
|
- run: pip install pytest && pip install -e . && pytest tests/ -v
|
||||||
run: |
|
|
||||||
pip install -e .
|
|
||||||
python -c "
|
|
||||||
import sys
|
|
||||||
print('Python path:')
|
|
||||||
for p in sys.path:
|
|
||||||
print(f' {p}')
|
|
||||||
print()
|
|
||||||
print('Trying imports...')
|
|
||||||
try:
|
|
||||||
from snip import cli
|
|
||||||
print('snip.cli imported OK')
|
|
||||||
except Exception as e:
|
|
||||||
print(f'snip.cli import failed: {e}')
|
|
||||||
import traceback
|
|
||||||
traceback.print_exc()
|
|
||||||
"
|
|
||||||
- name: Test
|
|
||||||
run: pip install pytest && pytest tests/ -v
|
|
||||||
Reference in New Issue
Block a user