From ed03b6699b36ba3cad0b50d8141d286ade1117c7 Mon Sep 17 00:00:00 2001 From: Tony Luu Date: Sun, 19 Apr 2026 22:06:05 +0930 Subject: [PATCH 1/9] docs(ci): add CI/CD pipeline documentation for BDD tests --- CI_ADDITION.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 CI_ADDITION.md diff --git a/CI_ADDITION.md b/CI_ADDITION.md new file mode 100644 index 0000000..238fe84 --- /dev/null +++ b/CI_ADDITION.md @@ -0,0 +1,48 @@ +## CI/CD Pipeline + +### GitHub Actions Workflow + +Add the following `.github/workflows/bdd-tests.yml` to enable CI for BDD tests: + +```yaml +name: BDD Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10'] + browser: ['chrome', 'firefox'] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run BDD tests + run: | + make test + + - name: Upload test results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-results-${{ matrix.python-version }}-${{ matrix.browser }} + path: reports/ +``` + +### Selenium WebDriver Configuration + +For CI environments, ensure appropriate WebDriver binaries are available. Use webdriver-manager or similar tools. From f4748bfd1d978b97c12424a9f26135f7a5ba98c2 Mon Sep 17 00:00:00 2001 From: Tony Luu Date: Mon, 20 Apr 2026 00:19:37 +0930 Subject: [PATCH 2/9] ci(pre-commit): update pre-commit hooks to compatible versions --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 60697d1..655822d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: check-yaml @@ -8,7 +8,7 @@ repos: - id: check-added-large-files - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 23.12.1 hooks: - id: black - language_version: python3.10 + language_version: python3.11 From 5a09bb0fba5acb018bd9db15c05a7260558d6f40 Mon Sep 17 00:00:00 2001 From: tooniez Date: Mon, 20 Apr 2026 00:27:44 +0930 Subject: [PATCH 3/9] chore: remove md task --- CI_ADDITION.md | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 CI_ADDITION.md diff --git a/CI_ADDITION.md b/CI_ADDITION.md deleted file mode 100644 index 238fe84..0000000 --- a/CI_ADDITION.md +++ /dev/null @@ -1,48 +0,0 @@ -## CI/CD Pipeline - -### GitHub Actions Workflow - -Add the following `.github/workflows/bdd-tests.yml` to enable CI for BDD tests: - -```yaml -name: BDD Tests - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ['3.8', '3.9', '3.10'] - browser: ['chrome', 'firefox'] - - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Run BDD tests - run: | - make test - - - name: Upload test results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-results-${{ matrix.python-version }}-${{ matrix.browser }} - path: reports/ -``` - -### Selenium WebDriver Configuration - -For CI environments, ensure appropriate WebDriver binaries are available. Use webdriver-manager or similar tools. From aa4e73c75ccb7af4ab39e5d04edd295fe0b41410 Mon Sep 17 00:00:00 2001 From: testified-oss-agent Date: Mon, 20 Apr 2026 03:17:50 +0930 Subject: [PATCH 4/9] chore: report test results for PR #6 --- reports/TESTS-api.xml | 16 ++++++++++++++++ reports/TESTS-e2e.xml | 25 +++++++++++++++++++++++++ reports/TESTS-unit.xml | 23 +++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 reports/TESTS-api.xml create mode 100644 reports/TESTS-e2e.xml create mode 100644 reports/TESTS-unit.xml diff --git a/reports/TESTS-api.xml b/reports/TESTS-api.xml new file mode 100644 index 0000000..4ec8d9f --- /dev/null +++ b/reports/TESTS-api.xml @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/reports/TESTS-e2e.xml b/reports/TESTS-e2e.xml new file mode 100644 index 0000000..3bd21b8 --- /dev/null +++ b/reports/TESTS-e2e.xml @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/reports/TESTS-unit.xml b/reports/TESTS-unit.xml new file mode 100644 index 0000000..8236b4a --- /dev/null +++ b/reports/TESTS-unit.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file From d5305e35d5dd0778526e60d1bbadf5ec34cdcef5 Mon Sep 17 00:00:00 2001 From: Tony Luu Date: Sun, 3 May 2026 14:50:25 +0930 Subject: [PATCH 5/9] fix: update pre-commit config to use python3.10 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 655822d..a66baca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,4 +11,4 @@ repos: rev: 23.12.1 hooks: - id: black - language_version: python3.11 + language_version: python3.10 From 3fefa9b7566764eb45b4b8495b8a09406e452a9c Mon Sep 17 00:00:00 2001 From: Tony Luu Date: Sun, 3 May 2026 14:58:26 +0930 Subject: [PATCH 6/9] chore: fix end-of-file newlines in test reports --- reports/TESTS-api.xml | 2 +- reports/TESTS-e2e.xml | 2 +- reports/TESTS-unit.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reports/TESTS-api.xml b/reports/TESTS-api.xml index 4ec8d9f..8b88db0 100644 --- a/reports/TESTS-api.xml +++ b/reports/TESTS-api.xml @@ -13,4 +13,4 @@ Captured stdout: 200 ]]> - \ No newline at end of file + diff --git a/reports/TESTS-e2e.xml b/reports/TESTS-e2e.xml index 3bd21b8..a0171c6 100644 --- a/reports/TESTS-e2e.xml +++ b/reports/TESTS-e2e.xml @@ -22,4 +22,4 @@ AssertionError @scenario.end -------------------------------------------------------------------------------- ]]> - \ No newline at end of file + diff --git a/reports/TESTS-unit.xml b/reports/TESTS-unit.xml index 8236b4a..e489fca 100644 --- a/reports/TESTS-unit.xml +++ b/reports/TESTS-unit.xml @@ -20,4 +20,4 @@ @scenario.end -------------------------------------------------------------------------------- ]]> - \ No newline at end of file + From 3d2b9c9b92a6e15d72199e5b9e67661d7d36f1c7 Mon Sep 17 00:00:00 2001 From: Tony Luu Date: Sun, 3 May 2026 15:42:57 +0930 Subject: [PATCH 7/9] ci: update pre-commit hooks and CI workflow for Python 3.10 compatibility --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a66baca..cce442d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,3 +12,4 @@ repos: hooks: - id: black language_version: python3.10 + args: [--line-length=88] From 62e350da011a349435387235e63bc5779da4560a Mon Sep 17 00:00:00 2001 From: Tony Luu Date: Sun, 3 May 2026 18:39:48 +0930 Subject: [PATCH 8/9] chore(ci): update pre-commit workflow --- .github/workflows/pre-commit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 7679e05..c505e10 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,8 +1,6 @@ name: Pre-commit Checks on: - push: - branches: [ main, master ] pull_request: branches: [ main, master ] @@ -11,6 +9,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 + with: + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v6 From ff1fd7177231f140ebb194cffc7bc90b95d718d6 Mon Sep 17 00:00:00 2001 From: Tony Luu Date: Mon, 4 May 2026 20:36:20 +0930 Subject: [PATCH 9/9] fix(pre-commit): update python version to 3.11 for CI --- .github/workflows/pre-commit.yml | 2 +- .pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c505e10..9c0c824 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6 with: - python-version: '3.10' + python-version: '3.11' cache: 'pip' - name: Install dependencies diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cce442d..ea8312d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,5 +11,5 @@ repos: rev: 23.12.1 hooks: - id: black - language_version: python3.10 + language_version: python3.11 args: [--line-length=88]