diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8531f99..6cf353d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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