Fixing more things.
Some checks failed
Tests / Backend Tests (Python 3.13 + uv) (push) Failing after 3m58s
Tests / Frontend Tests (TypeScript + Vue + Yarn Berry) (push) Failing after 4m0s

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2025-10-23 14:03:58 -04:00
parent debe7e27ea
commit d16c7d9452

View File

@@ -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 '<template><div>Test</div></template>' > 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