From caf8d3aa7c582d95b822086c7d73a7ea6bccd4a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Procha=CC=81zka?= <90197375+P-R-O-C-H-Y@users.noreply.github.com> Date: Wed, 12 Jul 2023 10:41:35 +0200 Subject: [PATCH 1/5] add C6/H2 to tests cfg.json --- tests/democfg/cfg.json | 8 ++++++++ tests/nvs/cfg.json | 20 +++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/tests/democfg/cfg.json b/tests/democfg/cfg.json index 2b9f26bf1fe..e39e709ecca 100644 --- a/tests/democfg/cfg.json +++ b/tests/democfg/cfg.json @@ -19,6 +19,14 @@ { "name": "esp32s3", "fqbn": ["espressif:esp32:esp32s3:PSRAM=opi,USBMode=default,PartitionScheme=huge_app"] + }, + { + "name": "esp32c6", + "fqbn": ["espressif:esp32:esp32c6:PartitionScheme=huge_app"] + }, + { + "name": "esp32h2", + "fqbn": ["espressif:esp32:esp32h2:PartitionScheme=huge_app"] } ] } diff --git a/tests/nvs/cfg.json b/tests/nvs/cfg.json index c1b23d46842..7f6fdd762bb 100644 --- a/tests/nvs/cfg.json +++ b/tests/nvs/cfg.json @@ -34,6 +34,24 @@ "espressif:esp32:esp32s3:PSRAM=opi,USBMode=default,PartitionScheme=huge_app,FlashMode=qio120", "espressif:esp32:esp32s3:PSRAM=opi,USBMode=default,PartitionScheme=huge_app,FlashMode=dio" ] - } + }, + { + "name": "esp32c6", + "fqbn": [ + "espressif:esp32:esp32c6:PartitionScheme=huge_app,FlashMode=dio", + "espressif:esp32:esp32c6:PartitionScheme=huge_app,FlashMode=dio,FlashFreq=40", + "espressif:esp32:esp32c6:PartitionScheme=huge_app,FlashMode=qio", + "espressif:esp32:esp32c6:PartitionScheme=huge_app,FlashMode=qio,FlashFreq=40" + ] + }, + { + "name": "esp32h2", + "fqbn": [ + "espressif:esp32:esp32h2:PartitionScheme=huge_app,FlashMode=dio", + "espressif:esp32:esp32h2:PartitionScheme=huge_app,FlashMode=dio,FlashFreq=16", + "espressif:esp32:esp32h2:PartitionScheme=huge_app,FlashMode=qio", + "espressif:esp32:esp32h2:PartitionScheme=huge_app,FlashMode=qio,FlashFreq=16" + ] + }, ] } \ No newline at end of file From ce170140e1d1a5367792be52f8c3721eb1fe58a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Procha=CC=81zka?= <90197375+P-R-O-C-H-Y@users.noreply.github.com> Date: Wed, 12 Jul 2023 12:22:16 +0200 Subject: [PATCH 2/5] remove , --- tests/nvs/cfg.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nvs/cfg.json b/tests/nvs/cfg.json index 7f6fdd762bb..a6be9540aa8 100644 --- a/tests/nvs/cfg.json +++ b/tests/nvs/cfg.json @@ -52,6 +52,6 @@ "espressif:esp32:esp32h2:PartitionScheme=huge_app,FlashMode=qio", "espressif:esp32:esp32h2:PartitionScheme=huge_app,FlashMode=qio,FlashFreq=16" ] - }, + } ] } \ No newline at end of file From 88a1e89e9f1f898f1909b9047ff9786fdc5af52d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Procha=CC=81zka?= <90197375+P-R-O-C-H-Y@users.noreply.github.com> Date: Wed, 12 Jul 2023 12:48:36 +0200 Subject: [PATCH 3/5] workflow runs-on runner by matrix --- .github/workflows/hil.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/hil.yml b/.github/workflows/hil.yml index 50c9d881bd6..b1519438de2 100644 --- a/.github/workflows/hil.yml +++ b/.github/workflows/hil.yml @@ -66,19 +66,12 @@ jobs: Test: needs: [gen_chunks, Build] name: ${{matrix.chip}}-Test#${{matrix.chunks}} - runs-on: - - ESP32 - - ESP32-S2 - - ESP32-S3 - - ESP32-C3 - - ESP32-C6 - - ESP32-H2 - strategy: fail-fast: false matrix: chip: ['esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp32c6', 'esp32h2'] chunks: ${{fromJson(needs.gen_chunks.outputs.chunks)}} + runs-on: ${{matrix.chip}} container: image: python:3.10.1-bullseye options: --privileged From 0af9192e94e104934a6606d90191cce92ed45c8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Procha=CC=81zka?= <90197375+P-R-O-C-H-Y@users.noreply.github.com> Date: Wed, 12 Jul 2023 13:37:10 +0200 Subject: [PATCH 4/5] Add need for arduino tag to select runner --- .github/workflows/hil.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hil.yml b/.github/workflows/hil.yml index b1519438de2..10c937f1bfe 100644 --- a/.github/workflows/hil.yml +++ b/.github/workflows/hil.yml @@ -71,7 +71,7 @@ jobs: matrix: chip: ['esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp32c6', 'esp32h2'] chunks: ${{fromJson(needs.gen_chunks.outputs.chunks)}} - runs-on: ${{matrix.chip}} + runs-on: [arduino, "${{matrix.chip}}"] container: image: python:3.10.1-bullseye options: --privileged From 2db9e70fd4b7f439ca36e9347a8cbd5387384db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Procha=CC=81zka?= <90197375+P-R-O-C-H-Y@users.noreply.github.com> Date: Wed, 12 Jul 2023 13:59:26 +0200 Subject: [PATCH 5/5] Add cryptography to requirements.txt --- tests/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/requirements.txt b/tests/requirements.txt index aa2f8e94477..896699b5752 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,3 +1,5 @@ +cryptography>=2.1.4 +--only-binary cryptography pytest-cov pytest-embedded-serial-esp>=1.3.4 pytest-embedded-arduino>=1.3.4