From eedc57f985cdfce23ba708076e8583185a1372a4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:22:26 +0000 Subject: [PATCH 1/3] Initial plan From a9a5b84efdd89c8dc6483b953a7ba6c664dc5c7b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:28:29 +0000 Subject: [PATCH 2/3] Add GitHub Actions CI workflow for pull requests Co-authored-by: prasadtalasila <9206466+prasadtalasila@users.noreply.github.com> --- .github/workflows/example-shm-ci.yml | 90 ++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .github/workflows/example-shm-ci.yml diff --git a/.github/workflows/example-shm-ci.yml b/.github/workflows/example-shm-ci.yml new file mode 100644 index 0000000..6489ce3 --- /dev/null +++ b/.github/workflows/example-shm-ci.yml @@ -0,0 +1,90 @@ +name: Example SHM CI + +on: + pull_request: + paths: + - "src/**" + - "tests/**" + - "pyproject.toml" + - "poetry.lock" + - ".pylintrc" + - "pytest.ini" + - ".github/workflows/example-shm-ci.yml" + +jobs: + ci: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + + steps: + # ───── 1. Checkout ───── + - uses: actions/checkout@v4 + + # ───── 2. Python + Poetry ───── + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install Poetry + env: + POETRY_HOME: ${{ runner.temp }}/poetry + run: | + python -m pip install --upgrade pip + curl -sSL https://install.python-poetry.org | python - + + - name: Add Poetry to PATH (Linux/macOS) + if: runner.os != 'Windows' + run: echo "${{ runner.temp }}/poetry/bin" >> $GITHUB_PATH + + - name: Add Poetry to PATH (Windows) + if: runner.os == 'Windows' + shell: pwsh + run: echo "${{ runner.temp }}\poetry\bin" | + Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 + + # ───── 3. Install deps once ───── + - name: Install dev dependencies + run: poetry install --with dev + + # ───── 4. Lint ───── + - name: Run pylint (min score 10.0) + run: poetry run pylint src tests --rcfile=.pylintrc --fail-under=10 + + # ───── 5. Tests ───── + - name: Run pytest (with coverage) + if: matrix.os == 'ubuntu-latest' + run: poetry run pytest --cov=src --cov-report=xml --cov-report=term-missing + + - name: Upload coverage to Codecov + if: matrix.os == 'ubuntu-latest' + uses: codecov/codecov-action@v5 + with: + files: coverage.xml + fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} + + # Windows/macOS → test without coverage + - name: Run pytest (no coverage) + if: matrix.os != 'ubuntu-latest' + run: poetry run pytest --no-cov -q + + # ───── 6. Build + dist artefacts ───── + - name: Install runtime dependencies + run: poetry install --only main + + - name: Build wheel and sdist + run: | + poetry build --format wheel + poetry build --format sdist + + - name: Upload dist artefacts + if: matrix.os == 'ubuntu-latest' + uses: actions/upload-artifact@v4 + with: + name: example-shm-dist + path: | + dist/*.whl + dist/*.tar.gz + retention-days: 1 From 922118212c05bfa3508d6dac610b81d352c59b02 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:37:53 +0000 Subject: [PATCH 3/3] Remove path-specific restrictions and reduce pylint score to 7 Co-authored-by: prasadtalasila <9206466+prasadtalasila@users.noreply.github.com> --- .github/workflows/example-shm-ci.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/example-shm-ci.yml b/.github/workflows/example-shm-ci.yml index 6489ce3..9c6d1fb 100644 --- a/.github/workflows/example-shm-ci.yml +++ b/.github/workflows/example-shm-ci.yml @@ -2,14 +2,6 @@ name: Example SHM CI on: pull_request: - paths: - - "src/**" - - "tests/**" - - "pyproject.toml" - - "poetry.lock" - - ".pylintrc" - - "pytest.ini" - - ".github/workflows/example-shm-ci.yml" jobs: ci: @@ -49,8 +41,8 @@ jobs: run: poetry install --with dev # ───── 4. Lint ───── - - name: Run pylint (min score 10.0) - run: poetry run pylint src tests --rcfile=.pylintrc --fail-under=10 + - name: Run pylint (min score 7.0) + run: poetry run pylint src tests --rcfile=.pylintrc --fail-under=7 # ───── 5. Tests ───── - name: Run pytest (with coverage)