This commit is contained in:
@@ -1,24 +1,11 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Python
|
- run: |
|
||||||
run: |
|
python3 --version
|
||||||
which python3 || apt-get update && apt-get install -y python3 python3-pip
|
|
||||||
- name: Check files
|
|
||||||
run: |
|
|
||||||
ls -la
|
|
||||||
ls confsync/
|
|
||||||
ls confsync/tests/ 2>/dev/null || echo "No tests dir"
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
pip3 install -e .
|
pip3 install -e .
|
||||||
pip3 install pytest
|
pip3 install pytest
|
||||||
- name: Run tests
|
pytest -v
|
||||||
run: |
|
|
||||||
python3 -c "import confsync" && pytest --collect-only 2>/dev/null || echo "No tests collected"
|
|
||||||
pytest confsync/tests/ -v 2>/dev/null || pytest tests/ -v 2>/dev/null || echo "No tests found"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user