forked from esphome/esphome
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c317422
commit 89fd367
Showing
27 changed files
with
1,039 additions
and
933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
# These are supported funding model platforms | ||
|
||
custom: https://www.nabucasa.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
--- | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Issue Tracker | ||
url: https://github.com/esphome/issues | ||
about: Please create bug reports in the dedicated issue tracker. | ||
- name: Feature Request Tracker | ||
url: https://github.com/esphome/feature-requests | ||
about: Please create feature requests in the dedicated feature request tracker. | ||
about: | | ||
Please create feature requests in the dedicated feature request tracker. | ||
- name: Frequently Asked Question | ||
url: https://esphome.io/guides/faq.html | ||
about: Please view the FAQ for common questions and what to include in a bug report. | ||
about: | | ||
Please view the FAQ for common questions and what | ||
to include in a bug report. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
--- | ||
name: CI | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
push: | ||
branches: [dev, beta, release] | ||
|
@@ -10,6 +12,7 @@ permissions: | |
contents: read | ||
|
||
concurrency: | ||
# yamllint disable-line rule:line-length | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
@@ -73,24 +76,28 @@ jobs: | |
name: Run script/clang-tidy for ESP32 IDF | ||
options: --environment esp32-idf-tidy --grep USE_ESP_IDF | ||
pio_cache_key: tidyesp32-idf | ||
- id: yamllint | ||
name: Run yamllint | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
id: python | ||
with: | ||
python-version: '3.8' | ||
python-version: "3.8" | ||
|
||
- name: Cache virtualenv | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
# yamllint disable-line rule:line-length | ||
key: venv-${{ steps.python.outputs.python-version }}-${{ hashFiles('requirements*.txt') }} | ||
restore-keys: | | ||
venv-${{ steps.python.outputs.python-version }}- | ||
- name: Set up virtualenv | ||
# yamllint disable rule:line-length | ||
run: | | ||
python -m venv .venv | ||
source .venv/bin/activate | ||
|
@@ -99,12 +106,14 @@ jobs: | |
pip install -e . | ||
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH | ||
echo "VIRTUAL_ENV=$GITHUB_WORKSPACE/.venv" >> $GITHUB_ENV | ||
# yamllint enable rule:line-length | ||
|
||
# Use per check platformio cache because checks use different parts | ||
- name: Cache platformio | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.platformio | ||
# yamllint disable-line rule:line-length | ||
key: platformio-${{ matrix.pio_cache_key }}-${{ hashFiles('platformio.ini') }} | ||
if: matrix.id == 'test' || matrix.id == 'clang-tidy' | ||
|
||
|
@@ -145,8 +154,9 @@ jobs: | |
pytest -vv --tb=native tests | ||
if: matrix.id == 'pytest' | ||
|
||
# Also run git-diff-index so that the step is marked as failed on formatting errors, | ||
# since clang-format doesn't do anything but change files if -i is passed. | ||
# Also run git-diff-index so that the step is marked as failed on | ||
# formatting errors, since clang-format doesn't do anything but | ||
# change files if -i is passed. | ||
- name: Run clang-format | ||
run: | | ||
script/clang-format -i | ||
|
@@ -161,6 +171,11 @@ jobs: | |
# Also cache libdeps, store them in a ~/.platformio subfolder | ||
PLATFORMIO_LIBDEPS_DIR: ~/.platformio/libdeps | ||
|
||
- name: Run yamllint | ||
if: matrix.id == 'yamllint' | ||
uses: frenck/[email protected] | ||
|
||
- name: Suggested changes | ||
run: script/ci-suggest-changes | ||
# yamllint disable-line rule:line-length | ||
if: always() && (matrix.id == 'clang-tidy' || matrix.id == 'clang-format' || matrix.id == 'lint-python') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.