From 1286d5a953e5d51d8f8b4710dba234592d0d7291 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Thu, 5 Feb 2026 11:01:24 +0000 Subject: [PATCH] Initial upload: Project Scaffold CLI with multi-language templates and CI/CD --- .../templates/ci/.gitlab-ci.yml.j2 | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 project_scaffold_cli/templates/ci/.gitlab-ci.yml.j2 diff --git a/project_scaffold_cli/templates/ci/.gitlab-ci.yml.j2 b/project_scaffold_cli/templates/ci/.gitlab-ci.yml.j2 new file mode 100644 index 0000000..fdc879b --- /dev/null +++ b/project_scaffold_cli/templates/ci/.gitlab-ci.yml.j2 @@ -0,0 +1,43 @@ +stages: + - lint + - test + - build + +lint: + stage: lint + image: python:3.11 + script: + - pip install flake8 black + - flake8 . + - black --check . + only: + - main + - master + +test: + stage: test + image: python:3.11 + script: + - pip install -e ".[dev]" + - pytest -v --cov={{ project_slug }} --cov-report=html + artifacts: + reports: + junit: test-results.xml + paths: + - htmlcov/ + only: + - main + - master + +build: + stage: build + image: python:3.11 + script: + - pip install build + - python -m build + artifacts: + paths: + - dist/ + only: + - main + - tags