From 5a6db706afc2bce99062a135dd534d6cdb387f51 Mon Sep 17 00:00:00 2001 From: aka19-76 Date: Fri, 13 Feb 2026 15:49:53 +0100 Subject: [PATCH 1/2] Add CI workflow for Python with testing --- ".github\\workflows\\ci.yml" | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ".github\\workflows\\ci.yml" diff --git "a/.github\\workflows\\ci.yml" "b/.github\\workflows\\ci.yml" new file mode 100644 index 0000000..642b985 --- /dev/null +++ "b/.github\\workflows\\ci.yml" @@ -0,0 +1,29 @@ +name: Python CI + +on: + push: + branches: [ master, dev ] + pull_request: + branches: [ master, dev ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Run tests + run: | + pytest From 5fb197d9599f8d389a3d9bcd1e5f5ee9d8130e38 Mon Sep 17 00:00:00 2001 From: aka19-76 Date: Fri, 13 Feb 2026 16:06:48 +0100 Subject: [PATCH 2/2] Create .github\workflows\lint.yml --- ".github\\workflows\\lint.yml" | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ".github\\workflows\\lint.yml" diff --git "a/.github\\workflows\\lint.yml" "b/.github\\workflows\\lint.yml" new file mode 100644 index 0000000..0a95830 --- /dev/null +++ "b/.github\\workflows\\lint.yml" @@ -0,0 +1,31 @@ +name: Lint + +on: + push: + branches: [ master, dev ] + pull_request: + branches: [ master, dev ] + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install linting tools + run: | + python -m pip install --upgrade pip + pip install flake8 black + + - name: Run flake8 + run: flake8 src tests + + - name: Run black (check only) + run: black --check src tests