fix: CI with manual git clone
Some checks failed
CI / test (push) Failing after 13s

This commit is contained in:
2026-02-04 20:34:13 +00:00
parent 9027548b1a
commit 3574964509

View File

@@ -4,21 +4,16 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Debug environment
- name: Clone repository
run: |
echo "=== Debug Info ==="
echo "PWD: $(pwd)"
echo "Contents: $(ls -la)"
echo "Python: $(which python3 || echo 'not found')"
- name: Install Python
git clone https://git::${{ secrets.GITEA_TOKEN }}@7000pct.gitea.bloupla.net/7000pctAUTO/confsync.git /tmp/confsync
cp -r /tmp/confsync/* .
- name: Setup Python
run: |
if ! command -v python3 &> /dev/null; then
apt-get update && apt-get install -y python3 python3-pip
fi
python3 --version
pip3 --version
- name: Install and test
apt-get update && apt-get install -y python3 python3-pip
- name: Install dependencies
run: |
pip3 install -e .
pip3 install pytest
pytest -v || echo "Tests may have failed but CI continues"
pip install -e .
pip install pytest
- name: Run tests
run: pytest -v