From 05f08ecb4670730d96cf432a329231ac37bfd44d Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Fri, 29 Dec 2023 13:57:04 +0100 Subject: [PATCH 1/3] ci: enable python 3.12 classifiers and tests --- .github/workflows/test-python.yml | 2 +- pytest-embedded-arduino/pyproject.toml | 1 + pytest-embedded-idf/pyproject.toml | 1 + pytest-embedded-jtag/pyproject.toml | 1 + pytest-embedded-qemu/pyproject.toml | 1 + pytest-embedded-serial-esp/pyproject.toml | 1 + pytest-embedded-serial/pyproject.toml | 1 + pytest-embedded-wokwi/pyproject.toml | 1 + pytest-embedded/pyproject.toml | 1 + 9 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 61d9bc79..14f3fcd3 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -16,7 +16,7 @@ jobs: - multiboard strategy: matrix: - python-version: ['3.7', '3.11'] + python-version: ['3.7', '3.12'] fail-fast: false container: image: python:${{ matrix.python-version }}-bullseye diff --git a/pytest-embedded-arduino/pyproject.toml b/pytest-embedded-arduino/pyproject.toml index 386ff00d..32df70c4 100644 --- a/pytest-embedded-arduino/pyproject.toml +++ b/pytest-embedded-arduino/pyproject.toml @@ -23,6 +23,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python", "Topic :: Software Development :: Testing", ] diff --git a/pytest-embedded-idf/pyproject.toml b/pytest-embedded-idf/pyproject.toml index bb87bb63..735fd4a1 100644 --- a/pytest-embedded-idf/pyproject.toml +++ b/pytest-embedded-idf/pyproject.toml @@ -22,6 +22,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python", "Topic :: Software Development :: Testing", ] diff --git a/pytest-embedded-jtag/pyproject.toml b/pytest-embedded-jtag/pyproject.toml index d16ba54f..43695c2d 100644 --- a/pytest-embedded-jtag/pyproject.toml +++ b/pytest-embedded-jtag/pyproject.toml @@ -22,6 +22,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python", "Topic :: Software Development :: Testing", ] diff --git a/pytest-embedded-qemu/pyproject.toml b/pytest-embedded-qemu/pyproject.toml index 7a8bc13a..97b8b387 100644 --- a/pytest-embedded-qemu/pyproject.toml +++ b/pytest-embedded-qemu/pyproject.toml @@ -22,6 +22,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python", "Topic :: Software Development :: Testing", ] diff --git a/pytest-embedded-serial-esp/pyproject.toml b/pytest-embedded-serial-esp/pyproject.toml index 3076c96e..c7379097 100644 --- a/pytest-embedded-serial-esp/pyproject.toml +++ b/pytest-embedded-serial-esp/pyproject.toml @@ -22,6 +22,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python", "Topic :: Software Development :: Testing", ] diff --git a/pytest-embedded-serial/pyproject.toml b/pytest-embedded-serial/pyproject.toml index b0fb0638..7ccc6f35 100644 --- a/pytest-embedded-serial/pyproject.toml +++ b/pytest-embedded-serial/pyproject.toml @@ -22,6 +22,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python", "Topic :: Software Development :: Testing", ] diff --git a/pytest-embedded-wokwi/pyproject.toml b/pytest-embedded-wokwi/pyproject.toml index 5677ab58..f52d431f 100644 --- a/pytest-embedded-wokwi/pyproject.toml +++ b/pytest-embedded-wokwi/pyproject.toml @@ -23,6 +23,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python", "Topic :: Software Development :: Testing", ] diff --git a/pytest-embedded/pyproject.toml b/pytest-embedded/pyproject.toml index 246c2806..d751ba42 100644 --- a/pytest-embedded/pyproject.toml +++ b/pytest-embedded/pyproject.toml @@ -20,6 +20,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python", "Topic :: Software Development :: Testing", ] From a0749f0171d51d6f254f357669018d31aa63fcf6 Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Fri, 29 Dec 2023 13:57:38 +0100 Subject: [PATCH 2/3] ci: cancel in progress check when new commits pushed --- .github/workflows/test-python.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 14f3fcd3..9ce235e3 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -8,6 +8,11 @@ on: push: branches: [ main ] +# cancel jobs if new commit pushed +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: test-python: timeout-minutes: 30 From 95f3450a94e5b913488d556be93467e8f64a800e Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Fri, 29 Dec 2023 14:03:32 +0100 Subject: [PATCH 3/3] ci: trigger workflow when the workflow file changed --- .github/workflows/test-python.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 9ce235e3..f5d6b252 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -4,6 +4,7 @@ on: pull_request: paths: - '**.py' + - .github/workflows/test-python.yml - '!docs/**' push: branches: [ main ]