diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d81ad2e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI + +on: + pull_request: + push: + branches: + - master + +permissions: + contents: read + +jobs: + lint: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 + with: + python-version: '3.11' + - name: Lint (syntax check) + run: | + echo "No dedicated linter configured; running Python syntax check via compileall." + python -m compileall libs stack + ci: + name: ci + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 + with: + python-version: '3.11' + - name: Install Poetry + run: pip install poetry + - name: Build and test + run: | + PROJECTS="libs/libml libs/libmq libs/libtelemetry stack/service-ml-common stack/service-ml-custom stack/service-one stack/service-two" + for proj in $PROJECTS; do + echo "==== Building $proj ====" + ( cd "$proj" && poetry build ) + done + echo "No test files found in the repository; build completed."