From d6dafe8db592d98f5544c53924a45c7919584f06 Mon Sep 17 00:00:00 2001 From: LeeTszFung <77471196+LeeTszFung@users.noreply.github.com> Date: Tue, 21 Apr 2026 17:37:31 +0800 Subject: [PATCH 1/6] Add lint.yaml file --- .github/workflows/lint.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..deaa001 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,20 @@ +name: Lint YAML Files + + +on: + pull_request: + branches: + - main + - master # Keeping 'master' just in case the repo uses that instead of 'main' + +jobs: + yamllint: + name: Check YAML Syntax + runs-on: ubuntu-latest # Tells GitHub to run this on a standard Linux server + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run yamllint + uses: ibiqlik/action-yamllint@v3 From 11c2624f77fa406496aadf1b815ce3138327e4b0 Mon Sep 17 00:00:00 2001 From: LeeTszFung <77471196+LeeTszFung@users.noreply.github.com> Date: Tue, 21 Apr 2026 17:38:22 +0800 Subject: [PATCH 2/6] modify lint.yaml --- .github/workflows/lint.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index deaa001..ab403ed 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -5,7 +5,6 @@ on: pull_request: branches: - main - - master # Keeping 'master' just in case the repo uses that instead of 'main' jobs: yamllint: From 4d5a90a0eecb838f21d658a47bf55e02c82a5bbe Mon Sep 17 00:00:00 2001 From: LeeTszFung <77471196+LeeTszFung@users.noreply.github.com> Date: Tue, 21 Apr 2026 17:40:57 +0800 Subject: [PATCH 3/6] Fix lint.yaml Error --- .github/workflows/lint.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index ab403ed..5b55422 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -5,7 +5,6 @@ on: pull_request: branches: - main - jobs: yamllint: name: Check YAML Syntax From 829ce6a56fd591961e076b02fdeb119f019e1420 Mon Sep 17 00:00:00 2001 From: LeeTszFung <77471196+LeeTszFung@users.noreply.github.com> Date: Tue, 21 Apr 2026 17:42:35 +0800 Subject: [PATCH 4/6] Update lint.yaml --- .github/workflows/lint.yaml | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 5b55422..49e219f 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,18 +1,23 @@ -name: Lint YAML Files +name: ruff +on: [push] -on: - pull_request: - branches: - - main jobs: - yamllint: - name: Check YAML Syntax - runs-on: ubuntu-latest # Tells GitHub to run this on a standard Linux server - + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11", "3.12"] steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Run yamllint - uses: ibiqlik/action-yamllint@v3 + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade uv + uv pip install ruff --system + - name: Analysing the code with ruff + run: | + ruff check . From 980314d686eb08e51c95d47d0e96c6d755a84e3f Mon Sep 17 00:00:00 2001 From: LeeTszFung <77471196+LeeTszFung@users.noreply.github.com> Date: Tue, 21 Apr 2026 17:45:59 +0800 Subject: [PATCH 5/6] Fix lint.yaml error --- .github/workflows/lint.yaml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 49e219f..e1289f3 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -12,12 +12,5 @@ jobs: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade uv - uv pip install ruff --system - - name: Analysing the code with ruff run: | ruff check . From 96219dc933611ca407ba259e45859fd9a763095b Mon Sep 17 00:00:00 2001 From: LeeTszFung <77471196+LeeTszFung@users.noreply.github.com> Date: Tue, 21 Apr 2026 17:53:48 +0800 Subject: [PATCH 6/6] Fix lint.yaml error --- .github/workflows/lint.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index e1289f3..cf65b6a 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -12,5 +12,12 @@ jobs: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies run: | - ruff check . + python -m pip install --upgrade uv + uv pip install ruff --system + - name: Analysing the code with ruff + run: | + ruff check src