From db57e6f73a3281993bad74d6eaa37f53445886fb Mon Sep 17 00:00:00 2001 From: "@zimeg" Date: Fri, 17 Jan 2025 11:24:25 -0800 Subject: [PATCH 1/2] ci: use python version 3.13 when checking updates --- .github/workflows/black.yml | 32 ++++++++++++++++---------------- .github/workflows/flake8.yml | 30 +++++++++++++++--------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 37d2abb..44f6b4f 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -2,7 +2,7 @@ name: Formatting validation using black on: push: - branches: [ main ] + branches: [main] pull_request: jobs: @@ -11,19 +11,19 @@ jobs: timeout-minutes: 5 strategy: matrix: - python-version: ['3.9'] - + python-version: ["3.9"] + steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - pip install -U pip - pip install -r requirements.txt - - name: Format with black - run: | - black . - if git status --porcelain | grep .; then git --no-pager diff; exit 1; fi \ No newline at end of file + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install -U pip + pip install -r requirements.txt + - name: Format with black + run: | + black . + if git status --porcelain | grep .; then git --no-pager diff; exit 1; fi diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index bdc75b9..fb3fa2a 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -2,7 +2,7 @@ name: Linting validation using flake8 on: push: - branches: [ main ] + branches: [main] pull_request: jobs: @@ -11,18 +11,18 @@ jobs: timeout-minutes: 5 strategy: matrix: - python-version: ['3.9'] - + python-version: ["3.13"] + steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - pip install -U pip - pip install -r requirements.txt - - name: Lint with flake8 - run: | - flake8 *.py && flake8 listeners/ \ No newline at end of file + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install -U pip + pip install -r requirements.txt + - name: Lint with flake8 + run: | + flake8 *.py && flake8 listeners/ From d14b5c8c738b46b6c71541091f438c78eb3d0446 Mon Sep 17 00:00:00 2001 From: "@zimeg" Date: Fri, 17 Jan 2025 11:26:50 -0800 Subject: [PATCH 2/2] ci: inlucde the python version updated in a workflow file --- .github/workflows/black.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 44f6b4f..8a07b8b 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -11,7 +11,7 @@ jobs: timeout-minutes: 5 strategy: matrix: - python-version: ["3.9"] + python-version: ["3.13"] steps: - uses: actions/checkout@v4