diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index ab1bf5b..a254843 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -36,44 +36,8 @@ jobs: echo "HTTP failed, trying original server URL..." # Third try: Original server URL (might work if networking fixed) git clone ${{ github.server_url }}/${{ github.repository }}.git . || { - echo "All clone attempts failed. Creating minimal project structure for testing..." - # Create minimal structure for environment testing - mkdir -p backend/src/backend backend/tests - - # Create proper pyproject.toml using individual echo commands - echo '[build-system]' > backend/pyproject.toml - echo 'requires = ["setuptools>=45", "wheel"]' >> backend/pyproject.toml - echo 'build-backend = "setuptools.build_meta"' >> backend/pyproject.toml - echo '' >> backend/pyproject.toml - echo '[project]' >> backend/pyproject.toml - echo 'name = "backend"' >> backend/pyproject.toml - echo 'version = "0.1.0"' >> backend/pyproject.toml - echo 'description = "Backend test project"' >> backend/pyproject.toml - echo 'requires-python = ">=3.12"' >> backend/pyproject.toml - echo 'dependencies = [' >> backend/pyproject.toml - echo ' "fastapi",' >> backend/pyproject.toml - echo ' "uvicorn",' >> backend/pyproject.toml - echo ']' >> backend/pyproject.toml - echo '' >> backend/pyproject.toml - echo '[project.optional-dependencies]' >> backend/pyproject.toml - echo 'dev = [' >> backend/pyproject.toml - echo ' "pytest",' >> backend/pyproject.toml - echo ' "pytest-cov",' >> backend/pyproject.toml - echo ' "typeguard",' >> backend/pyproject.toml - echo ' "ruff",' >> backend/pyproject.toml - echo ' "pyright",' >> backend/pyproject.toml - echo ']' >> backend/pyproject.toml - echo '' >> backend/pyproject.toml - echo '[tool.setuptools.packages.find]' >> backend/pyproject.toml - echo 'where = ["src"]' >> backend/pyproject.toml - echo '' >> backend/pyproject.toml - echo '[tool.setuptools.package-dir]' >> backend/pyproject.toml - echo '"" = "src"' >> backend/pyproject.toml - - echo '"""Backend package."""' > backend/src/backend/__init__.py - echo '__version__ = "0.1.0"' >> backend/src/backend/__init__.py - echo 'def test_basic(): assert True' > backend/tests/test_basic.py - echo "Minimal backend structure created for testing" + echo "All clone attempts failed - cannot continue without project files" + exit 1 } fi fi @@ -186,13 +150,8 @@ jobs: echo "HTTP failed, trying original server URL..." # Third try: Original server URL (might work if networking fixed) git clone ${{ github.server_url }}/${{ github.repository }}.git . || { - echo "All clone attempts failed. Creating minimal project structure for testing..." - # Create minimal frontend structure for environment testing - mkdir -p frontend/src frontend/tests/unit - echo '{"name": "frontend", "version": "0.1.0", "dependencies": {"vue": "^3.3.0"}, "devDependencies": {"typescript": "^5.1.0", "@vitejs/plugin-vue": "^4.3.0", "vitest": "^0.34.0"}}' > frontend/package.json - echo '' > frontend/src/App.vue - echo 'import { describe, it, expect } from "vitest"; describe("test", () => { it("works", () => { expect(true).toBe(true); }); });' > frontend/tests/unit/test.spec.ts - echo "Minimal frontend structure created for testing" + echo "All clone attempts failed - cannot continue without project files" + exit 1 } fi fi @@ -234,7 +193,6 @@ jobs: echo "nodeLinker: pnp" >> .yarnrc.yml echo "compressionLevel: 0" >> .yarnrc.yml echo "httpTimeout: 60000" >> .yarnrc.yml - echo "networkTimeout: 60000" >> .yarnrc.yml # Add packageManager field to package.json to avoid warnings if ! grep -q '"packageManager"' package.json; then