Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5f1da4e

Browse files
committedDec 4, 2024··
fix(formatting): Fix missing files on protected folders
1 parent db6617f commit 5f1da4e

23 files changed

+356
-347
lines changed
 

‎.github/ISSUE_TEMPLATE/Issue-report.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ body:
55
- type: markdown
66
attributes:
77
value: |
8-
* Before reporting a new issue please check and search in [List of existing issues](https://github.com/espressif/arduino-esp32/issues?q=is%3Aissue)
8+
* Before reporting a new issue please check and search in [List of existing issues](https://github.com/espressif/arduino-esp32/issues?q=is%3Aissue)
99
* Please check [Online Documentation](https://docs.espressif.com/projects/arduino-esp32/en/latest/index.html)
1010
* Take a look on [Troubleshooting guide](https://docs.espressif.com/projects/arduino-esp32/en/latest/troubleshooting.html)
1111
* If still experiencing the issue, please provide as many details as possible below about your hardware, computer setup and code.
@@ -24,7 +24,7 @@ body:
2424
description: What development board or other hardware is the chip attached to?
2525
placeholder: ex. DevKitC, plain module on breadboard, etc. If your hardware is custom or unusual, please attach a photo.
2626
validations:
27-
required: true
27+
required: true
2828
- type: textarea
2929
id: other-hw
3030
attributes:
@@ -60,7 +60,7 @@ body:
6060
- v2.0.8
6161
- v2.0.7
6262
- v2.0.6
63-
- v2.0.5
63+
- v2.0.5
6464
- v2.0.4
6565
- v2.0.3
6666
- v2.0.2
@@ -73,11 +73,11 @@ body:
7373
- type: input
7474
id: IDE
7575
attributes:
76-
label: IDE Name
77-
description: What IDE are you using?
78-
placeholder: eg. Arduino IDE, VSCode, Sloeber...
76+
label: IDE Name
77+
description: What IDE are you using?
78+
placeholder: eg. Arduino IDE, VSCode, Sloeber...
7979
validations:
80-
required: true
80+
required: true
8181
- type: input
8282
id: os
8383
attributes:
@@ -95,13 +95,13 @@ body:
9595
validations:
9696
required: true
9797
- type: dropdown
98-
id: PSRAM
98+
id: PSRAM
9999
attributes:
100100
label: PSRAM enabled
101101
description: Is PSRAM enabled?
102102
options:
103-
- 'yes'
104-
- 'no'
103+
- "yes"
104+
- "no"
105105
validations:
106106
required: true
107107
- type: input
@@ -116,8 +116,8 @@ body:
116116
id: Description
117117
attributes:
118118
label: Description
119-
description: Please describe your problem here and expected behaviour
120-
placeholder: ex. Can't connect/weird behaviour/wrong function/missing parameter..
119+
description: Please describe your problem here and expected behavior
120+
placeholder: ex. Can't connect/weird behavior/wrong function/missing parameter..
121121
validations:
122122
required: true
123123
- type: textarea
@@ -128,7 +128,7 @@ body:
128128
placeholder: ex. Related part of the code to replicate the issue
129129
render: cpp
130130
validations:
131-
required: true
131+
required: true
132132
- type: textarea
133133
id: Debug
134134
attributes:
@@ -137,11 +137,11 @@ body:
137137
placeholder: Enable Core debug level - Debug on tools menu of Arduino IDE, then put the serial output here.
138138
render: plain
139139
validations:
140-
required: true
140+
required: true
141141
- type: textarea
142142
id: other-remarks
143143
attributes:
144-
label: Other Steps to Reproduce
144+
label: Other Steps to Reproduce
145145
description: Is there any other information you can think of which will help us reproduce this problem? Any additional info can be added as well.
146146
placeholder: ex. I also tried on other OS, HW...it works correctly on that setup.
147147
- type: checkboxes

‎.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ contact_links:
55
about: Community channel for questions and help
66
- name: ESP32 Forum - Arduino
77
url: https://esp32.com/viewforum.php?f=19
8-
about: Official Forum for questions
8+
about: Official Forum for questions

‎.github/scripts/merge_packages.py

Lines changed: 46 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,58 @@
11
#!/usr/bin/env python
2+
23
# This script merges two Arduino Board Manager package json files.
34
# Usage:
45
# python merge_packages.py package_esp8266com_index.json version/new/package_esp8266com_index.json
56
# Written by Ivan Grokhotkov, 2015
67
#
8+
79
from __future__ import print_function
8-
#from distutils.version import LooseVersion
10+
11+
# from distutils.version import LooseVersion
912
from packaging.version import Version
1013
import re
1114
import json
1215
import sys
1316

17+
1418
def load_package(filename):
15-
pkg = json.load(open(filename))['packages'][0]
16-
print("Loaded package {0} from {1}".format(pkg['name'], filename), file=sys.stderr)
17-
print("{0} platform(s), {1} tools".format(len(pkg['platforms']), len(pkg['tools'])), file=sys.stderr)
19+
pkg = json.load(open(filename))["packages"][0]
20+
print("Loaded package {0} from {1}".format(pkg["name"], filename), file=sys.stderr)
21+
print("{0} platform(s), {1} tools".format(len(pkg["platforms"]), len(pkg["tools"])), file=sys.stderr)
1822
return pkg
1923

24+
2025
def merge_objects(versions, obj):
2126
for o in obj:
22-
name = o['name'].encode('ascii')
23-
ver = o['version'].encode('ascii')
24-
if not name in versions:
27+
name = o["name"].encode("ascii")
28+
ver = o["version"].encode("ascii")
29+
if name not in versions:
2530
print("found new object, {0}".format(name), file=sys.stderr)
2631
versions[name] = {}
27-
if not ver in versions[name]:
32+
if ver not in versions[name]:
2833
print("found new version {0} for object {1}".format(ver, name), file=sys.stderr)
2934
versions[name][ver] = o
3035
return versions
3136

32-
# Normalize ESP release version string (x.x.x) by adding '-rc<MAXINT>' (x.x.x-rc9223372036854775807) to ensure having REL above any RC
33-
# Dummy approach, functional anyway for current ESP package versioning (unlike NormalizedVersion/LooseVersion/StrictVersion & similar crap)
37+
38+
# Normalize ESP release version string (x.x.x) by adding '-rc<MAXINT>' (x.x.x-rc9223372036854775807)
39+
# to ensure having REL above any RC
40+
# Dummy approach, functional anyway for current ESP package versioning
41+
# (unlike NormalizedVersion/LooseVersion/StrictVersion & similar crap)
3442
def pkgVersionNormalized(versionString):
3543

3644
verStr = str(versionString)
37-
verParts = re.split('\.|-rc|-alpha', verStr, flags=re.IGNORECASE)
38-
45+
verParts = re.split(r"\.|-rc|-alpha", verStr, flags=re.IGNORECASE)
46+
3947
if len(verParts) == 3:
40-
if (sys.version_info > (3, 0)): # Python 3
41-
verStr = str(versionString) + '-rc' + str(sys.maxsize)
42-
else: # Python 2
43-
verStr = str(versionString) + '-rc' + str(sys.maxint)
44-
48+
if sys.version_info > (3, 0): # Python 3
49+
verStr = str(versionString) + "-rc" + str(sys.maxsize)
50+
else: # Python 2
51+
verStr = str(versionString) + "-rc" + str(sys.maxint)
52+
4553
elif len(verParts) != 4:
4654
print("pkgVersionNormalized WARNING: unexpected version format: {0})".format(verStr), file=sys.stderr)
47-
55+
4856
return verStr
4957

5058

@@ -54,31 +62,37 @@ def main(args):
5462
return 1
5563

5664
tools = {}
57-
platforms = {}
65+
platforms = {}
5866
pkg1 = load_package(args[1])
59-
tools = merge_objects(tools, pkg1['tools']);
60-
platforms = merge_objects(platforms, pkg1['platforms']);
67+
tools = merge_objects(tools, pkg1["tools"])
68+
platforms = merge_objects(platforms, pkg1["platforms"])
6169
pkg2 = load_package(args[2])
62-
tools = merge_objects(tools, pkg2['tools']);
63-
platforms = merge_objects(platforms, pkg2['platforms']);
70+
tools = merge_objects(tools, pkg2["tools"])
71+
platforms = merge_objects(platforms, pkg2["platforms"])
6472

65-
pkg1['tools'] = []
66-
pkg1['platforms'] = []
73+
pkg1["tools"] = []
74+
pkg1["platforms"] = []
6775

6876
for name in tools:
6977
for version in tools[name]:
7078
print("Adding tool {0}-{1}".format(name, version), file=sys.stderr)
71-
pkg1['tools'].append(tools[name][version])
79+
pkg1["tools"].append(tools[name][version])
7280

7381
for name in platforms:
7482
for version in platforms[name]:
7583
print("Adding platform {0}-{1}".format(name, version), file=sys.stderr)
76-
pkg1['platforms'].append(platforms[name][version])
77-
78-
#pkg1['platforms'] = sorted(pkg1['platforms'], key=lambda k: LooseVersion(pkgVersionNormalized(k['version'])), reverse=True)
79-
pkg1['platforms'] = sorted(pkg1['platforms'], key=lambda k: Version(pkgVersionNormalized(k['version'])), reverse=True)
84+
pkg1["platforms"].append(platforms[name][version])
85+
86+
# pkg1["platforms"] = sorted(
87+
# pkg1["platforms"], key=lambda k: LooseVersion(pkgVersionNormalized(k["version"])), reverse=True
88+
# )
89+
90+
pkg1["platforms"] = sorted(
91+
pkg1["platforms"], key=lambda k: Version(pkgVersionNormalized(k["version"])), reverse=True
92+
)
93+
94+
json.dump({"packages": [pkg1]}, sys.stdout, indent=2)
8095

81-
json.dump({'packages':[pkg1]}, sys.stdout, indent=2)
8296

83-
if __name__ == '__main__':
97+
if __name__ == "__main__":
8498
sys.exit(main(sys.argv))

‎.github/workflows/allboards.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Boards Test - Remote trigger
22

3-
# The workflow will run on remote dispath with event-type set to "test-boards"
3+
# The workflow will run on remote dispatch with event-type set to "test-boards"
44
on:
55
repository_dispatch:
66
types: [test-boards]
@@ -20,8 +20,7 @@ jobs:
2020
ref: ${{ github.event.client_payload.branch }}
2121

2222
- name: Get boards fqbns
23-
run:
24-
bash .github/scripts/find_all_boards.sh
23+
run: bash .github/scripts/find_all_boards.sh
2524

2625
setup-chunks:
2726
needs: find-boards
@@ -43,8 +42,7 @@ jobs:
4342

4443
- id: set-test-chunks
4544
name: Set Chunks
46-
run:
47-
echo "test-chunks<<EOF" >> $GITHUB_OUTPUT
45+
run: echo "test-chunks<<EOF" >> $GITHUB_OUTPUT
4846

4947
echo "$( jq -nc '${{ needs.find-boards.outputs.fqbns }} | [_nwise( ${{ needs.find-boards.outputs.board-count }}/15 | ceil)]')" >> $GITHUB_OUTPUT
5048

@@ -61,7 +59,7 @@ jobs:
6159
6260
strategy:
6361
fail-fast: false
64-
matrix:
62+
matrix:
6563
chunk: ${{ fromJSON(needs.setup-chunks.outputs['test-chunks']) }}
6664

6765
steps:
@@ -71,9 +69,8 @@ jobs:
7169
ref: ${{ github.event.client_payload.branch }}
7270

7371
- name: Echo FQBNS to file
74-
run:
75-
echo "$FQBN" > fqbns.json
76-
env:
72+
run: echo "$FQBN" > fqbns.json
73+
env:
7774
FQBN: ${{ toJSON(matrix.chunk) }}
7875

7976
- name: Compile sketch
@@ -88,5 +85,4 @@ jobs:
8885
enable-warnings-report: false
8986
cli-compile-flags: |
9087
- --warnings="all"
91-
sketch-paths:
92-
"- ./libraries/ESP32/examples/CI/CIBoardsTest/CIBoardsTest.ino"
88+
sketch-paths: "- ./libraries/ESP32/examples/CI/CIBoardsTest/CIBoardsTest.ino"

‎.github/workflows/boards.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ name: Boards Test
44
on:
55
pull_request:
66
paths:
7-
- 'boards.txt'
8-
- 'libraries/ESP32/examples/CI/CIBoardsTest/CIBoardsTest.ino'
9-
- '.github/workflows/boards.yml'
7+
- "boards.txt"
8+
- "libraries/ESP32/examples/CI/CIBoardsTest/CIBoardsTest.ino"
9+
- ".github/workflows/boards.yml"
1010

1111
env:
1212
# It's convenient to set variables for values used multiple times in the workflow
@@ -28,8 +28,7 @@ jobs:
2828
uses: dcarbone/install-jq-action@v1.0.1
2929

3030
- name: Get board name
31-
run:
32-
bash .github/scripts/find_new_boards.sh ${{ github.repository }} ${{github.base_ref}}
31+
run: bash .github/scripts/find_new_boards.sh ${{ github.repository }} ${{github.base_ref}}
3332

3433
test-boards:
3534
needs: find-boards
@@ -72,7 +71,7 @@ jobs:
7271
./tools/openocd-esp32
7372
./tools/riscv32-*
7473
./tools/xtensa-*
75-
74+
7675
- name: Compile sketch
7776
uses: P-R-O-C-H-Y/compile-sketches@main
7877
with:
@@ -85,6 +84,5 @@ jobs:
8584
cli-compile-flags: |
8685
- --warnings="all"
8786
exit-on-fail: true
88-
sketch-paths:
89-
"- ./libraries/ESP32/examples/CI/CIBoardsTest/CIBoardsTest.ino"
87+
sketch-paths: "- ./libraries/ESP32/examples/CI/CIBoardsTest/CIBoardsTest.ino"
9088
verbose: true

‎.github/workflows/build_py_tools.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Build Python Tools
33
on:
44
pull_request:
55
paths:
6-
- '.github/workflows/build_py_tools.yml'
7-
- 'tools/get.py'
8-
- 'tools/espota.py'
9-
- 'tools/gen_esp32part.py'
10-
- 'tools/gen_insights_package.py'
6+
- ".github/workflows/build_py_tools.yml"
7+
- "tools/get.py"
8+
- "tools/espota.py"
9+
- "tools/gen_esp32part.py"
10+
- "tools/gen_insights_package.py"
1111

1212
jobs:
1313
find-changed-tools:
@@ -33,8 +33,8 @@ jobs:
3333
uses: tj-actions/changed-files@v41
3434
id: verify-changed-files
3535
with:
36-
fetch_depth: '2'
37-
since_last_remote_commit: 'true'
36+
fetch_depth: "2"
37+
since_last_remote_commit: "true"
3838
files: |
3939
tools/get.py
4040
tools/espota.py
@@ -57,20 +57,20 @@ jobs:
5757
matrix:
5858
os: [windows-latest, macos-latest, ubuntu-20.04, ARM]
5959
include:
60-
- os: windows-latest
61-
TARGET: win64
62-
EXTEN: .exe
63-
SEPARATOR: ';'
64-
- os: macos-latest
65-
TARGET: macos
66-
SEPARATOR: ':'
67-
- os: ubuntu-20.04
68-
TARGET: linux-amd64
69-
SEPARATOR: ':'
70-
- os: ARM
71-
CONTAINER: python:3.8-bullseye
72-
TARGET: arm
73-
SEPARATOR: ':'
60+
- os: windows-latest
61+
TARGET: win64
62+
EXTEN: .exe
63+
SEPARATOR: ";"
64+
- os: macos-latest
65+
TARGET: macos
66+
SEPARATOR: ":"
67+
- os: ubuntu-20.04
68+
TARGET: linux-amd64
69+
SEPARATOR: ":"
70+
- os: ARM
71+
CONTAINER: python:3.8-bullseye
72+
TARGET: arm
73+
SEPARATOR: ":"
7474
container: ${{ matrix.CONTAINER }} # use python container on ARM
7575
env:
7676
DISTPATH: pytools-${{ matrix.TARGET }}

‎.github/workflows/dangerjs.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
pull-request-style-linter:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Check out PR head
15-
uses: actions/checkout@v4
16-
with:
17-
ref: ${{ github.event.pull_request.head.sha }}
14+
- name: Check out PR head
15+
uses: actions/checkout@v4
16+
with:
17+
ref: ${{ github.event.pull_request.head.sha }}
1818

19-
- name: DangerJS pull request linter
20-
uses: espressif/shared-github-dangerjs@v1
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
rule-max-commits: 'false'
24-
commit-messages-min-summary-length: '10'
19+
- name: DangerJS pull request linter
20+
uses: espressif/shared-github-dangerjs@v1
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
rule-max-commits: "false"
24+
commit-messages-min-summary-length: "10"

‎.github/workflows/docs_build.yml

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,43 @@ name: Documentation Build and Deploy CI
33
on:
44
push:
55
branches:
6-
- master
7-
- release/v2.x
6+
- master
7+
- release/v2.x
88
paths:
9-
- 'docs/**'
10-
- '.github/workflows/docs_build.yml'
9+
- "docs/**"
10+
- ".github/workflows/docs_build.yml"
1111
pull_request:
1212
paths:
13-
- 'docs/**'
14-
- '.github/workflows/docs_build.yml'
13+
- "docs/**"
14+
- ".github/workflows/docs_build.yml"
1515

1616
jobs:
17-
1817
build-docs:
1918
name: Build ESP-Docs
2019
runs-on: ubuntu-22.04
2120
defaults:
2221
run:
2322
shell: bash
2423
steps:
25-
- uses: actions/checkout@v4
26-
with:
27-
submodules: true
28-
- uses: actions/setup-python@v5
29-
with:
30-
cache-dependency-path: docs/requirements.txt
31-
cache: 'pip'
32-
python-version: '3.10'
33-
- name: Build
34-
run: |
35-
sudo apt update
36-
sudo apt install python3-pip python3-setuptools
37-
# GitHub CI installs pip3 and setuptools outside the path.
38-
# Update the path to include them and run.
39-
cd ./docs
40-
PATH=/home/runner/.local/bin:$PATH pip3 install -r requirements.txt --prefer-binary
41-
PATH=/home/runner/.local/bin:$PATH SPHINXOPTS="-W" build-docs -l en
42-
- name: Archive Docs
43-
uses: actions/upload-artifact@v4
44-
with:
45-
name: docs
46-
path: docs
24+
- uses: actions/checkout@v4
25+
with:
26+
submodules: true
27+
- uses: actions/setup-python@v5
28+
with:
29+
cache-dependency-path: docs/requirements.txt
30+
cache: "pip"
31+
python-version: "3.10"
32+
- name: Build
33+
run: |
34+
sudo apt update
35+
sudo apt install python3-pip python3-setuptools
36+
# GitHub CI installs pip3 and setuptools outside the path.
37+
# Update the path to include them and run.
38+
cd ./docs
39+
PATH=/home/runner/.local/bin:$PATH pip3 install -r requirements.txt --prefer-binary
40+
PATH=/home/runner/.local/bin:$PATH SPHINXOPTS="-W" build-docs -l en
41+
- name: Archive Docs
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: docs
45+
path: docs

‎.github/workflows/docs_deploy.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
- completed
88
push:
99
branches:
10-
- release/v2.x
11-
- master
10+
- release/v2.x
11+
- master
1212
paths:
13-
- 'docs/**'
14-
- '.github/workflows/docs_deploy.yml'
13+
- "docs/**"
14+
- ".github/workflows/docs_deploy.yml"
1515

1616
jobs:
1717
deploy-prod-docs:
@@ -21,39 +21,39 @@ jobs:
2121
run:
2222
shell: bash
2323
steps:
24-
- name: Check if release workflow is successful
25-
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion != 'success' }}
26-
run: |
27-
echo "Release workflow failed. Exiting..."
28-
exit 1
29-
- uses: actions/checkout@v4
30-
with:
31-
submodules: true
32-
- uses: actions/setup-python@v5
33-
with:
34-
cache-dependency-path: docs/requirements.txt
35-
cache: 'pip'
36-
python-version: '3.10'
37-
- name: Deploy Documentation
38-
env:
39-
# Deploy to production server
40-
# DOCS_BUILD_DIR: "./docs/_build/"
41-
DOCS_DEPLOY_PRIVATEKEY: ${{ secrets.DOCS_KEY }}
42-
DOCS_DEPLOY_PATH: ${{ secrets.DOCS_PATH }}
43-
DOCS_DEPLOY_SERVER: ${{ secrets.DOCS_SERVER }}
44-
DOCS_DEPLOY_SERVER_USER: ${{ secrets.DOCS_USER }}
45-
DOCS_DEPLOY_URL_BASE: ${{ secrets.DOCS_URL }}
46-
run: |
47-
sudo apt update
48-
sudo apt install python3-pip python3-setuptools
49-
source ./docs/utils.sh
50-
add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
51-
export GIT_VER=$(git describe --always)
52-
echo "PIP install requirements..."
53-
pip3 install --user -r ./docs/requirements.txt
54-
echo "Building the Docs..."
55-
cd ./docs && build-docs -l en
56-
echo "Deploy the Docs..."
57-
export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs/
58-
cd $GITHUB_WORKSPACE/docs
59-
deploy-docs
24+
- name: Check if release workflow is successful
25+
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion != 'success' }}
26+
run: |
27+
echo "Release workflow failed. Exiting..."
28+
exit 1
29+
- uses: actions/checkout@v4
30+
with:
31+
submodules: true
32+
- uses: actions/setup-python@v5
33+
with:
34+
cache-dependency-path: docs/requirements.txt
35+
cache: "pip"
36+
python-version: "3.10"
37+
- name: Deploy Documentation
38+
env:
39+
# Deploy to production server
40+
# DOCS_BUILD_DIR: "./docs/_build/"
41+
DOCS_DEPLOY_PRIVATEKEY: ${{ secrets.DOCS_KEY }}
42+
DOCS_DEPLOY_PATH: ${{ secrets.DOCS_PATH }}
43+
DOCS_DEPLOY_SERVER: ${{ secrets.DOCS_SERVER }}
44+
DOCS_DEPLOY_SERVER_USER: ${{ secrets.DOCS_USER }}
45+
DOCS_DEPLOY_URL_BASE: ${{ secrets.DOCS_URL }}
46+
run: |
47+
sudo apt update
48+
sudo apt install python3-pip python3-setuptools
49+
source ./docs/utils.sh
50+
add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
51+
export GIT_VER=$(git describe --always)
52+
echo "PIP install requirements..."
53+
pip3 install --user -r ./docs/requirements.txt
54+
echo "Building the Docs..."
55+
cd ./docs && build-docs -l en
56+
echo "Deploy the Docs..."
57+
export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs/
58+
cd $GITHUB_WORKSPACE/docs
59+
deploy-docs

‎.github/workflows/gh-pages.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,20 @@ name: GitHub Pages CI
33
on:
44
push:
55
branches:
6-
- master
7-
- pages
6+
- master
7+
- pages
88
paths:
9-
- 'README.md'
10-
- '.github/scripts/on-pages.sh'
11-
- '.github/workflows/gh-pages.yml'
9+
- "README.md"
10+
- ".github/scripts/on-pages.sh"
11+
- ".github/workflows/gh-pages.yml"
1212

1313
jobs:
14-
1514
build-pages:
1615
name: Build GitHub Pages
1716
runs-on: ubuntu-latest
1817
steps:
19-
- uses: actions/checkout@v4
20-
- name: Copy Files
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
run: bash ./.github/scripts/on-pages.sh
18+
- uses: actions/checkout@v4
19+
- name: Copy Files
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
run: bash ./.github/scripts/on-pages.sh

‎.github/workflows/lib.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
# Schedule weekly builds on every Sunday at 4 am
99
schedule:
10-
- cron: '0 4 * * SUN'
10+
- cron: "0 4 * * SUN"
1111

1212
concurrency:
1313
group: libs-${{ github.event.pull_request.number || github.ref }}
@@ -27,7 +27,6 @@ jobs:
2727
contains(github.event.pull_request.labels.*.name, 'lib_test') ||
2828
(github.event_name == 'schedule' && github.repository == 'espressif/arduino-esp32')
2929
runs-on: ubuntu-latest
30-
3130
env:
3231
REPOSITORY: |
3332
- source-path: '.'
@@ -57,7 +56,6 @@ jobs:
5756
- target: esp32h2
5857
fqbn: espressif:esp32:esp32h2
5958

60-
6159
steps:
6260
# This step makes the contents of the repository available to the workflow
6361
- name: Checkout repository
@@ -85,7 +83,7 @@ jobs:
8583
path: ${{ env.SKETCHES_REPORTS_PATH }}
8684

8785
report-to-file:
88-
needs: compile-sketch # Wait for the compile job to finish to get the data for the report
86+
needs: compile-sketch # Wait for the compile job to finish to get the data for the report
8987
if: github.event_name == 'schedule' # Only run the job when the workflow is triggered by a schedule
9088
runs-on: ubuntu-latest
9189
steps:
@@ -94,11 +92,10 @@ jobs:
9492
uses: actions/checkout@v4
9593
with:
9694
token: ${{ env.GITHUB_TOKEN }}
97-
fetch-depth: '0'
95+
fetch-depth: "0"
9896

9997
- name: Switch branch
100-
run:
101-
git checkout remotes/origin/gh-pages
98+
run: git checkout remotes/origin/gh-pages
10299

103100
# This step is needed to get the size data produced by the compile jobs
104101
- name: Download sketches reports artifact
@@ -115,8 +112,7 @@ jobs:
115112
destination-file: ${{ env.RESULT_LIBRARY_TEST_FILE }}
116113

117114
- name: Append file with action URL
118-
run:
119-
echo "/ [GitHub Action Link](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})" >> ${{ env.RESULT_LIBRARY_TEST_FILE }}
115+
run: echo "/ [GitHub Action Link](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})" >> ${{ env.RESULT_LIBRARY_TEST_FILE }}
120116

121117
- name: Push to github repo
122118
run: |

‎.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: actions/setup-python@v5
3838
with:
3939
cache-dependency-path: tools/pre-commit/requirements.txt
40-
cache: 'pip'
40+
cache: "pip"
4141
python-version: "3.x"
4242

4343
- name: Get Python version hash

‎.github/workflows/publishlib.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: juliangruber/read-file-action@v1
4848
with:
4949
path: ./artifacts/workflows/pr_num.txt
50-
50+
5151
- name: Report results
5252
uses: P-R-O-C-H-Y/report-size-deltas@libs
5353
with:

‎.github/workflows/publishsizes-2.x.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ env:
1111

1212
jobs:
1313
sizes-test-results:
14-
name: Sizes Comparsion Results
14+
name: Sizes Comparison Results
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v4 # This step checks out the repository's code at gh-pages branch
18+
uses: actions/checkout@v4 # This step checks out the repository's code at gh-pages branch
1919
with:
2020
ref: gh-pages
2121

@@ -41,8 +41,7 @@ jobs:
4141
destination-file: ${{ env.RESULT_SIZES_TEST_FILE }}
4242

4343
- name: Append file with action URL
44-
run:
45-
echo "/ [GitHub Action Link](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})" >> ${{ env.RESULT_SIZES_TEST_FILE }}
44+
run: echo "/ [GitHub Action Link](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})" >> ${{ env.RESULT_SIZES_TEST_FILE }}
4645

4746
- name: Push to github repo
4847
run: |

‎.github/workflows/publishsizes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ env:
1414

1515
jobs:
1616
sizes-test-results:
17-
name: Sizes Comparsion Results
17+
name: Sizes Comparison Results
1818
runs-on: ubuntu-latest
1919
if: |
2020
github.event.workflow_run.event == 'pull_request' &&
2121
github.event.workflow_run.conclusion == 'success'
2222
2323
steps:
2424
- name: Checkout code
25-
uses: actions/checkout@v4 # This step checks out the repository's code at gh-pages branch
25+
uses: actions/checkout@v4 # This step checks out the repository's code at gh-pages branch
2626
with:
2727
ref: gh-pages
2828

‎.github/workflows/push.yml

Lines changed: 116 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,30 @@ on:
44
workflow_dispatch:
55
push:
66
branches:
7-
- master
8-
- release/*
7+
- master
8+
- release/*
99
pull_request:
1010
paths:
11-
- 'cores/**'
12-
- 'libraries/**'
13-
- '!libraries/**.md'
14-
- '!libraries/**.txt'
15-
- '!libraries/**.properties'
16-
- '!libraries/**.py'
17-
- 'package/**'
18-
- 'tools/**.py'
19-
- 'platform.txt'
20-
- 'programmers.txt'
21-
- 'idf_component.yml'
22-
- 'Kconfig.projbuild'
23-
- 'package.json'
24-
- 'CMakeLists.txt'
25-
- '.github/workflows/push.yml'
26-
- '.github/scripts/**'
27-
- '!.github/scripts/find_*'
28-
- '!.github/scripts/on-release.sh'
29-
- '!.github/scripts/tests_*'
30-
- '!.github/scripts/upload_*'
11+
- "cores/**"
12+
- "libraries/**"
13+
- "!libraries/**.md"
14+
- "!libraries/**.txt"
15+
- "!libraries/**.properties"
16+
- "!libraries/**.py"
17+
- "package/**"
18+
- "tools/**.py"
19+
- "platform.txt"
20+
- "programmers.txt"
21+
- "idf_component.yml"
22+
- "Kconfig.projbuild"
23+
- "package.json"
24+
- "CMakeLists.txt"
25+
- ".github/workflows/push.yml"
26+
- ".github/scripts/**"
27+
- "!.github/scripts/find_*"
28+
- "!.github/scripts/on-release.sh"
29+
- "!.github/scripts/tests_*"
30+
- "!.github/scripts/upload_*"
3131
- "variants/esp32/**/*"
3232
- "variants/esp32s2/**/*"
3333
- "variants/esp32s3/**/*"
@@ -49,8 +49,8 @@ jobs:
4949
runs-on: ubuntu-latest
5050
if: ${{ !(github.event_name == 'pull_request' && startsWith(github.head_ref, 'release/')) }}
5151
steps:
52-
- uses: actions/checkout@v4
53-
- run: bash ./.github/scripts/check-cmakelists.sh
52+
- uses: actions/checkout@v4
53+
- run: bash ./.github/scripts/check-cmakelists.sh
5454

5555
gen-chunks:
5656
name: Generate chunks
@@ -65,16 +65,16 @@ jobs:
6565
chunk_count: ${{ steps.set-chunks.outputs.chunk_count }}
6666
chunks: ${{ steps.set-chunks.outputs.chunks }}
6767
steps:
68-
- name: Checkout repository
69-
uses: actions/checkout@v4
70-
with:
71-
fetch-depth: 2
68+
- name: Checkout repository
69+
uses: actions/checkout@v4
70+
with:
71+
fetch-depth: 2
7272

73-
- name: Get changed files
74-
id: changed-files
75-
uses: tj-actions/changed-files@v44
76-
with:
77-
files_yaml: |
73+
- name: Get changed files
74+
id: changed-files
75+
uses: tj-actions/changed-files@v44
76+
with:
77+
files_yaml: |
7878
core:
7979
- '.github/**'
8080
- '!.github/scripts/install-platformio-esp32.sh'
@@ -115,31 +115,31 @@ jobs:
115115
- '.github/scripts/install-platformio-esp32.sh'
116116
- 'tools/platformio-build.py'
117117
118-
- name: Set chunks
119-
id: set-chunks
120-
env:
121-
LIB_FILES: ${{ steps.changed-files.outputs.libraries_all_changed_files }}
122-
IS_PR: ${{ github.event_name == 'pull_request' }}
123-
MAX_CHUNKS: ${{ env.MAX_CHUNKS }}
124-
BUILD_PLATFORMIO: ${{ steps.changed-files.outputs.platformio_any_changed == 'true' }}
125-
BUILD_IDF: ${{ steps.changed-files.outputs.idf_any_changed == 'true' }}
126-
BUILD_LIBRARIES: ${{ steps.changed-files.outputs.libraries_any_changed == 'true' }}
127-
BUILD_STATIC_SKETCHES: ${{ steps.changed-files.outputs.static_sketeches_any_changed == 'true' }}
128-
FS_CHANGED: ${{ steps.changed-files.outputs.fs_any_changed == 'true' }}
129-
NETWORKING_CHANGED: ${{ steps.changed-files.outputs.networking_any_changed == 'true' }}
130-
CORE_CHANGED: ${{ steps.changed-files.outputs.core_any_changed == 'true' }}
131-
LIB_CHANGED: ${{ steps.changed-files.outputs.libraries_any_changed == 'true' }}
132-
run: |
133-
bash ./.github/scripts/set_push_chunks.sh
118+
- name: Set chunks
119+
id: set-chunks
120+
env:
121+
LIB_FILES: ${{ steps.changed-files.outputs.libraries_all_changed_files }}
122+
IS_PR: ${{ github.event_name == 'pull_request' }}
123+
MAX_CHUNKS: ${{ env.MAX_CHUNKS }}
124+
BUILD_PLATFORMIO: ${{ steps.changed-files.outputs.platformio_any_changed == 'true' }}
125+
BUILD_IDF: ${{ steps.changed-files.outputs.idf_any_changed == 'true' }}
126+
BUILD_LIBRARIES: ${{ steps.changed-files.outputs.libraries_any_changed == 'true' }}
127+
BUILD_STATIC_SKETCHES: ${{ steps.changed-files.outputs.static_sketeches_any_changed == 'true' }}
128+
FS_CHANGED: ${{ steps.changed-files.outputs.fs_any_changed == 'true' }}
129+
NETWORKING_CHANGED: ${{ steps.changed-files.outputs.networking_any_changed == 'true' }}
130+
CORE_CHANGED: ${{ steps.changed-files.outputs.core_any_changed == 'true' }}
131+
LIB_CHANGED: ${{ steps.changed-files.outputs.libraries_any_changed == 'true' }}
132+
run: |
133+
bash ./.github/scripts/set_push_chunks.sh
134134
135-
- name: Upload sketches found
136-
if: ${{ steps.set-chunks.outputs.build_all == 'false' && steps.set-chunks.outputs.build_libraries == 'true' }}
137-
uses: actions/upload-artifact@v4
138-
with:
139-
name: sketches_found
140-
path: sketches_found.txt
141-
overwrite: true
142-
if-no-files-found: error
135+
- name: Upload sketches found
136+
if: ${{ steps.set-chunks.outputs.build_all == 'false' && steps.set-chunks.outputs.build_libraries == 'true' }}
137+
uses: actions/upload-artifact@v4
138+
with:
139+
name: sketches_found
140+
path: sketches_found.txt
141+
overwrite: true
142+
if-no-files-found: error
143143

144144
# Ubuntu
145145
build-arduino-linux:
@@ -153,45 +153,45 @@ jobs:
153153
chunk: ${{ fromJson(needs.gen-chunks.outputs.chunks) }}
154154

155155
steps:
156-
- uses: actions/checkout@v4
157-
- uses: actions/setup-python@v5
158-
with:
159-
python-version: '3.x'
156+
- uses: actions/checkout@v4
157+
- uses: actions/setup-python@v5
158+
with:
159+
python-version: "3.x"
160160

161-
- name: Get libs cache
162-
uses: actions/cache@v4
163-
with:
164-
key: libs-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('package/package_esp32_index.template.json', 'tools/get.py') }}
165-
path: |
166-
./tools/dist
167-
./tools/esp32-arduino-libs
168-
./tools/esptool
169-
./tools/mk*
170-
./tools/openocd-esp32
171-
./tools/riscv32-*
172-
./tools/xtensa-*
161+
- name: Get libs cache
162+
uses: actions/cache@v4
163+
with:
164+
key: libs-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('package/package_esp32_index.template.json', 'tools/get.py') }}
165+
path: |
166+
./tools/dist
167+
./tools/esp32-arduino-libs
168+
./tools/esptool
169+
./tools/mk*
170+
./tools/openocd-esp32
171+
./tools/riscv32-*
172+
./tools/xtensa-*
173173
174-
- name: Build all sketches
175-
if: ${{ needs.gen-chunks.outputs.build_all == 'true' }}
176-
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} ${{ env.MAX_CHUNKS }} 1
174+
- name: Build all sketches
175+
if: ${{ needs.gen-chunks.outputs.build_all == 'true' }}
176+
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} ${{ env.MAX_CHUNKS }} 1
177177

178-
- name: Download sketches found
179-
if: ${{ needs.gen-chunks.outputs.build_all == 'false' && needs.gen-chunks.outputs.build_libraries == 'true' }}
180-
uses: actions/download-artifact@v4
181-
with:
182-
name: sketches_found
178+
- name: Download sketches found
179+
if: ${{ needs.gen-chunks.outputs.build_all == 'false' && needs.gen-chunks.outputs.build_libraries == 'true' }}
180+
uses: actions/download-artifact@v4
181+
with:
182+
name: sketches_found
183183

184-
- name: Build selected sketches
185-
if: ${{ needs.gen-chunks.outputs.build_all == 'false' && needs.gen-chunks.outputs.build_libraries == 'true' }}
186-
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} ${{ needs.gen-chunks.outputs.chunk_count }} 1 sketches_found.txt
184+
- name: Build selected sketches
185+
if: ${{ needs.gen-chunks.outputs.build_all == 'false' && needs.gen-chunks.outputs.build_libraries == 'true' }}
186+
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} ${{ needs.gen-chunks.outputs.chunk_count }} 1 sketches_found.txt
187187

188-
#Upload cli compile json as artifact
189-
- name: Upload cli compile json
190-
uses: actions/upload-artifact@v4
191-
with:
192-
name: pr_cli_compile_${{ matrix.chunk }}
193-
path: cli_compile_${{ matrix.chunk }}.json
194-
overwrite: true
188+
#Upload cli compile json as artifact
189+
- name: Upload cli compile json
190+
uses: actions/upload-artifact@v4
191+
with:
192+
name: pr_cli_compile_${{ matrix.chunk }}
193+
path: cli_compile_${{ matrix.chunk }}.json
194+
overwrite: true
195195

196196
# Windows and MacOS
197197
build-arduino-win-mac:
@@ -205,12 +205,12 @@ jobs:
205205
os: [windows-latest, macOS-latest]
206206

207207
steps:
208-
- uses: actions/checkout@v4
209-
- uses: actions/setup-python@v5
210-
with:
211-
python-version: '3.x'
212-
- name: Build Sketches
213-
run: bash ./.github/scripts/on-push.sh
208+
- uses: actions/checkout@v4
209+
- uses: actions/setup-python@v5
210+
with:
211+
python-version: "3.x"
212+
- name: Build Sketches
213+
run: bash ./.github/scripts/on-push.sh
214214

215215
# PlatformIO on Windows, Ubuntu and Mac
216216
build-platformio:
@@ -227,12 +227,12 @@ jobs:
227227
os: [ubuntu-latest, windows-latest, macOS-latest]
228228

229229
steps:
230-
- uses: actions/checkout@v4
231-
- uses: actions/setup-python@v5
232-
with:
233-
python-version: '3.x'
234-
- name: Build Sketches
235-
run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO
230+
- uses: actions/checkout@v4
231+
- uses: actions/setup-python@v5
232+
with:
233+
python-version: "3.x"
234+
- name: Build Sketches
235+
run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO
236236

237237
build-esp-idf-component:
238238
name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
@@ -250,7 +250,16 @@ jobs:
250250
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html
251251
# for details.
252252
idf_ver: ["release-v5.1"]
253-
idf_target: ["esp32", "esp32s2", "esp32s3", "esp32c2", "esp32c3", "esp32c6", "esp32h2"]
253+
idf_target:
254+
[
255+
"esp32",
256+
"esp32s2",
257+
"esp32s3",
258+
"esp32c2",
259+
"esp32c3",
260+
"esp32c6",
261+
"esp32h2",
262+
]
254263
container: espressif/idf:${{ matrix.idf_ver }}
255264
steps:
256265
- name: Check out arduino-esp32 as a component
@@ -275,16 +284,15 @@ jobs:
275284
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
276285
runs-on: ubuntu-latest
277286
steps:
278-
# Check out repository
287+
# Check out repository
279288
- name: Checkout repository
280289
uses: actions/checkout@v4
281290
with:
282291
token: ${{secrets.GITHUB_TOKEN}}
283-
fetch-depth: '0'
292+
fetch-depth: "0"
284293

285294
- name: Switch branch
286-
run:
287-
git checkout remotes/origin/gh-pages
295+
run: git checkout remotes/origin/gh-pages
288296

289297
- name: Download sketches reports artifact
290298
uses: actions/download-artifact@v4

‎.github/workflows/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v4
14-
with:
15-
fetch-depth: 0
16-
- uses: actions/setup-python@v5
17-
with:
18-
python-version: '3.x'
19-
- run: pip install packaging
20-
- run: pip install pyserial
21-
- name: Build Release
22-
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
run: bash ./.github/scripts/on-release.sh
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.x"
19+
- run: pip install packaging
20+
- run: pip install pyserial
21+
- name: Build Release
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
run: bash ./.github/scripts/on-release.sh

‎.github/workflows/tests.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ on:
1616
pull_request:
1717
types: [opened, reopened, closed, synchronize, labeled, unlabeled]
1818
paths:
19-
- '.github/workflows/tests*'
20-
- '.github/scripts/*.sh'
21-
- '!.github/scripts/check-cmakelists.sh'
22-
- '!.github/scripts/find_*'
23-
- '!.github/scripts/on-*.sh'
24-
- '!.github/scripts/set_push_chunks.sh'
25-
- '!.github/scripts/update-version.sh'
26-
- '!.github/scripts/upload_py_tools.sh'
27-
- 'tests/**'
28-
- 'cores/**'
29-
- 'libraries/*/src/**.cpp'
30-
- 'libraries/*/src/**.h'
31-
- 'libraries/*/src/**.c'
32-
- 'package/**'
19+
- ".github/workflows/tests*"
20+
- ".github/scripts/*.sh"
21+
- "!.github/scripts/check-cmakelists.sh"
22+
- "!.github/scripts/find_*"
23+
- "!.github/scripts/on-*.sh"
24+
- "!.github/scripts/set_push_chunks.sh"
25+
- "!.github/scripts/update-version.sh"
26+
- "!.github/scripts/upload_py_tools.sh"
27+
- "tests/**"
28+
- "cores/**"
29+
- "libraries/*/src/**.cpp"
30+
- "libraries/*/src/**.h"
31+
- "libraries/*/src/**.c"
32+
- "package/**"
3333
schedule:
34-
- cron: '0 2 * * *'
34+
- cron: "0 2 * * *"
3535

3636
concurrency:
3737
group: tests-${{ github.event.pull_request.number || github.ref }}
@@ -115,7 +115,7 @@ jobs:
115115
fail-fast: false
116116
matrix:
117117
type: ${{ fromJson(needs.gen-matrix.outputs.qemu-types) }}
118-
chip: ['esp32', 'esp32c3']
118+
chip: ["esp32", "esp32c3"]
119119
with:
120120
type: ${{ matrix.type }}
121121
chip: ${{ matrix.chip }}

‎.github/workflows/tests_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ on:
55
inputs:
66
type:
77
type: string
8-
description: 'Type of tests to build'
8+
description: "Type of tests to build"
99
required: true
1010
chip:
1111
type: string
12-
description: 'Chip to build tests for'
12+
description: "Chip to build tests for"
1313
required: true
1414

1515
jobs:

‎.github/workflows/tests_hw.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ on:
55
inputs:
66
type:
77
type: string
8-
description: 'Type of tests to run'
8+
description: "Type of tests to run"
99
required: true
1010
chip:
1111
type: string
12-
description: 'Chip to run tests for'
12+
description: "Chip to run tests for"
1313
required: true
1414

1515
env:

‎.github/workflows/tests_qemu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ jobs:
6464
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
6565
with:
6666
cache-dependency-path: tests/requirements.txt
67-
cache: 'pip'
68-
python-version: '3.x'
67+
cache: "pip"
68+
python-version: "3.x"
6969

7070
- name: Install Python dependencies
7171
if: ${{ steps.check-tests.outputs.enabled == 'true' }}

‎.github/workflows/tests_results.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
github.event.workflow_run.conclusion == 'timed_out'
1919
runs-on: ubuntu-latest
2020
permissions:
21-
actions: write
22-
statuses: write
23-
checks: write
24-
pull-requests: write
25-
contents: write
21+
actions: write
22+
statuses: write
23+
checks: write
24+
pull-requests: write
25+
contents: write
2626
steps:
2727
- uses: actions/checkout@v4
2828
with:
@@ -139,13 +139,13 @@ jobs:
139139
core.info(`${name} is ${state}`);
140140
141141
- name: Create output folder
142-
if: ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }}
142+
if: ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }} # codespell:ignore cancelled
143143
run: |
144144
rm -rf artifacts
145145
mkdir -p runtime-tests-results
146146
147147
- name: Generate badge
148-
if: ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }}
148+
if: ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }} # codespell:ignore cancelled
149149
uses: jaywcjlove/generated-badges@v1.0.13
150150
with:
151151
label: Runtime Tests
@@ -154,7 +154,7 @@ jobs:
154154
color: ${{ job.status == 'success' && 'green' || 'red' }}
155155

156156
- name: Push badge
157-
if: ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }}
157+
if: ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }} # codespell:ignore cancelled
158158
run: |
159159
git config user.name "github-actions[bot]"
160160
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

‎.github/workflows/tests_wokwi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ jobs:
247247
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
248248
with:
249249
cache-dependency-path: tests/requirements.txt
250-
cache: 'pip'
251-
python-version: '3.x'
250+
cache: "pip"
251+
python-version: "3.x"
252252

253253
- name: Install dependencies
254254
if: ${{ steps.check-tests.outputs.enabled == 'true' }}

0 commit comments

Comments
 (0)
Please sign in to comment.