From 51e769e86239aa4f4732749251ae9c0b5681afba Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Feb 2026 19:57:03 +0000 Subject: [PATCH 1/3] Initial plan From ec1453c223f0e13dbfab8bc5468b74ed1dcf5994 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Feb 2026 20:01:22 +0000 Subject: [PATCH 2/3] Enhance CI workflow with pull request validation steps Co-authored-by: Jury1981 <210622247+Jury1981@users.noreply.github.com> --- .github/workflows/blank.yml | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 01502b1..16c823a 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -25,12 +25,33 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! + # Set up Python environment + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + cache: 'pip' - # Runs a set of commands using the runners shell - - name: Run a multi-line script + # Install dependencies + - name: Install dependencies run: | - echo Add other actions to build, - echo test, and deploy your project. + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install nbformat nbconvert + + # Validate Jupyter notebooks + - name: Validate notebooks + run: | + echo "Validating Jupyter notebooks..." + for notebook in notebooks/*.ipynb; do + echo "Checking $notebook" + python -m nbconvert --to script --stdout "$notebook" > /dev/null + done + echo "All notebooks are valid!" + + # Check requirements file + - name: Verify requirements.txt + run: | + echo "Verifying requirements.txt is properly formatted..." + pip check + echo "Requirements check passed!" From 00571cd0837ac09fd39bba4be0b6c2e86b60cee2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Feb 2026 20:02:14 +0000 Subject: [PATCH 3/3] Address code review feedback: fix notebook validation and step naming Co-authored-by: Jury1981 <210622247+Jury1981@users.noreply.github.com> --- .github/workflows/blank.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 16c823a..7305b26 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -43,15 +43,21 @@ jobs: - name: Validate notebooks run: | echo "Validating Jupyter notebooks..." - for notebook in notebooks/*.ipynb; do + shopt -s nullglob + notebooks=(notebooks/*.ipynb) + if [ ${#notebooks[@]} -eq 0 ]; then + echo "No notebooks found to validate" + exit 0 + fi + for notebook in "${notebooks[@]}"; do echo "Checking $notebook" python -m nbconvert --to script --stdout "$notebook" > /dev/null done echo "All notebooks are valid!" - # Check requirements file - - name: Verify requirements.txt + # Check installed dependencies + - name: Verify installed dependencies run: | - echo "Verifying requirements.txt is properly formatted..." + echo "Verifying installed dependencies..." pip check - echo "Requirements check passed!" + echo "Dependency check passed!"