-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into hmac_auth
- Loading branch information
Showing
47 changed files
with
2,135 additions
and
1,013 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,14 +36,14 @@ jobs: | |
name: Check that all classes are documented in the menu-a-la-carte example | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
# Using anwer from here to get the exit code and pass the output: https://stackoverflow.com/questions/59191913/how-do-i-get-the-output-of-a-specific-step-in-github-actions | ||
# Using answer from here to get the exit code and pass the output: https://stackoverflow.com/questions/59191913/how-do-i-get-the-output-of-a-specific-step-in-github-actions | ||
- name: check for classes in the menu example | ||
id: check_component | ||
continue-on-error: true | ||
|
@@ -84,7 +84,7 @@ jobs: | |
|
||
steps: | ||
# check out the ModularSensors repo | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: code_docs/ModularSensors | ||
|
||
|
@@ -124,7 +124,7 @@ jobs: | |
# check out my fork of m.css, for processing Doxygen output | ||
- name: Checkout m.css | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
# Repository name with owner. For example, actions/checkout | ||
repository: SRGDamia1/m.css | ||
|
@@ -149,7 +149,7 @@ jobs: | |
- name: Deploy to github pages | ||
if: "(github.event_name == 'release' && github.event.action == 'published') || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true')" | ||
uses: peaceiris/[email protected].2 | ||
uses: peaceiris/[email protected].3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ${{ github.workspace }}/code_docs/ModularSensorsDoxygen/m.css |
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
pio_job_matrix: ${{ steps.py_matrix.outputs.pio_job_matrix }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
|
@@ -53,34 +53,77 @@ jobs: | |
echo "PlatformIO job matrix" | ||
echo "${{ needs.generate_matrix.outputs.pio_job_matrix }}" | ||
determine_library_source: | ||
name: determine_library_source | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'ci skip')" | ||
outputs: | ||
library_install_zip: ${{ steps.store_vars.outputs.library_install_zip }} | ||
library_install_git: ${{ steps.store_vars.outputs.library_install_git }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set environment variables for pushes to any branch in EnviroDIY/ModularSensors | ||
if: github.event_name == 'push' | ||
run: | | ||
echo "Push to commit ${GITHUB_SHA}" | ||
echo "LIBRARY_INSTALL_ZIP=https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_SHA}.zip" >> $GITHUB_ENV | ||
echo "LIBRARY_INSTALL_GIT=https://github.com/${GITHUB_REPOSITORY}.git#${GITHUB_SHA}" >> $GITHUB_ENV | ||
- name: Set environment variable for PR's from any branch in EnviroDIY/ModularSensors | ||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.name == github.repository | ||
run: | | ||
echo "Pull Request from the ${GITHUB_HEAD_REF} branch" | ||
echo "LIBRARY_INSTALL_ZIP=https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_HEAD_REF}.zip" >> $GITHUB_ENV | ||
echo "LIBRARY_INSTALL_GIT=https://github.com/${GITHUB_REPOSITORY}.git#${GITHUB_HEAD_REF}" >> $GITHUB_ENV | ||
- name: Set environment variable for PR's from any branch in EnviroDIY/ModularSensors | ||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.name != github.repository | ||
run: | | ||
echo "Pull Request from the fork ${{ github.event.pull_request.head.repo.full_name }} at ${{ github.event.pull_request.head.ref }}" | ||
echo "LIBRARY_INSTALL_ZIP=https://github.com/${{ github.event.pull_request.head.repo.full_name }}/archive/${{ github.event.pull_request.head.ref }}.zip" >> $GITHUB_ENV | ||
echo "LIBRARY_INSTALL_GIT=https://github.com${{ github.event.pull_request.head.repo.full_name }}.git#${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV | ||
- name: store enviroment variables as output | ||
id: store_vars | ||
run: | | ||
echo "library_install_zip=${{ env.LIBRARY_INSTALL_ZIP }}" >> $GITHUB_OUTPUT | ||
echo "library_install_git=${{ env.LIBRARY_INSTALL_GIT }}" >> $GITHUB_OUTPUT | ||
print_library_source: | ||
name: print_library_source | ||
runs-on: ubuntu-latest | ||
needs: determine_library_source | ||
steps: | ||
- name: Check the library installation source | ||
run: | | ||
echo "Link to zip for Arduino CLI testing install:" | ||
echo "${{ needs.determine_library_source.outputs.library_install_zip }}" | ||
echo | ||
echo "Git reference for PlatformIO testing install" | ||
echo "${{ needs.determine_library_source.outputs.library_install_git }}" | ||
build_ex_arduino: | ||
name: ${{ matrix.job_info.job_name }} | ||
runs-on: ubuntu-latest | ||
needs: generate_matrix | ||
needs: [generate_matrix, determine_library_source] | ||
env: | ||
LIBRARY_INSTALL_ZIP: ${{ needs.determine_library_source.outputs.library_install_zip }} | ||
strategy: | ||
matrix: | ||
job_info: ${{ fromJSON(needs.generate_matrix.outputs.arduino_job_matrix) }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set environment variable for library installation source | ||
run: | | ||
if [[ -z "${GITHUB_HEAD_REF}" ]]; then | ||
echo "::debug::Push to commit ${GITHUB_SHA}" | ||
echo "LIBRARY_INSTALL_ZIP=https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_SHA}.zip" >> $GITHUB_ENV | ||
else | ||
echo "::debug::Pull Request from the ${GITHUB_HEAD_REF} branch" | ||
echo "LIBRARY_INSTALL_ZIP=https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_HEAD_REF}.zip" >> $GITHUB_ENV | ||
fi | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Unused Step | ||
run: echo "This is needed to make the step number match with the PlatformIO jobs. =)" | ||
|
||
# We use the `arduino/setup-arduino-cli` action to install and | ||
# configure the Arduino CLI on the system. | ||
- name: Setup Arduino CLI | ||
uses: arduino/[email protected].1 | ||
uses: arduino/[email protected].2 | ||
|
||
- name: Restore Arduino platforms and libraries | ||
uses: actions/cache@v3 | ||
|
@@ -134,23 +177,15 @@ jobs: | |
build_pio: | ||
name: ${{ matrix.job_info.job_name }} | ||
runs-on: ubuntu-latest | ||
needs: generate_matrix | ||
needs: [generate_matrix, determine_library_source] | ||
env: | ||
LIBRARY_INSTALL_GIT: ${{ needs.determine_library_source.outputs.library_install_zip }} | ||
strategy: | ||
matrix: | ||
job_info: ${{ fromJSON(needs.generate_matrix.outputs.pio_job_matrix) }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set environment variable for library installation source | ||
run: | | ||
if [[ -z "${GITHUB_HEAD_REF}" ]]; then | ||
echo "::debug::Push to commit ${GITHUB_SHA}" | ||
echo "LIBRARY_INSTALL_SOURCE=https://github.com/${GITHUB_REPOSITORY}.git#${GITHUB_SHA}" >> $GITHUB_ENV | ||
else | ||
echo "::debug::Pull Request from the ${GITHUB_HEAD_REF} branch" | ||
echo "LIBRARY_INSTALL_SOURCE=https://github.com/${GITHUB_REPOSITORY}.git#${GITHUB_HEAD_REF}" >> $GITHUB_ENV | ||
fi | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
|
@@ -184,7 +219,7 @@ jobs: | |
# Force install to get the right version | ||
- name: Install the testing version of Modular Sensors for PlatformIO | ||
run: | | ||
pio pkg install -g --library ${{ env.LIBRARY_INSTALL_SOURCE }} | ||
pio pkg install -g --library ${{ env.LIBRARY_INSTALL_GIT }} | ||
- name: Download the prepared examples | ||
uses: actions/download-artifact@v3 | ||
|
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
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 +1 @@ | ||
0.34.0 | ||
0.35.0 |
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
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
Oops, something went wrong.
816c4e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All sensor and variable subclasses must be included in the Menu a la Carte example
missing_menu_docs
816c4e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lint_errors
816c4e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All sensor and variable subclasses must be included in the Menu a la Carte example
missing_menu_docs
816c4e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lint_errors