-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Showing
180 changed files
with
2,553 additions
and
1,629 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Deployment | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- "release/**" | ||
|
||
jobs: | ||
deployment: | ||
runs-on: ubuntu-latest | ||
environment: production | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: "recursive" | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
- name: Deployment Tests | ||
env: | ||
TEST_EMAIL_LOGIN: ${{ secrets.TEST_EMAIL_LOGIN }} | ||
TEST_EMAIL_PASSWORD: ${{ secrets.TEST_EMAIL_PASSWORD }} | ||
TEST_EMAIL_IMAP_SERVER: ${{ secrets.TEST_EMAIL_IMAP_SERVER }} | ||
run: | | ||
tox -e testcore | ||
- name: Publish package to PyPI | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Projects | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
project: | ||
- marlin: | ||
repository: "MarlinFirmware/Marlin" | ||
folder: "Marlin" | ||
config_dir: "Marlin" | ||
env_name: "mega2560" | ||
- esphome: | ||
repository: "esphome/esphome" | ||
folder: "esphome" | ||
config_dir: "esphome" | ||
env_name: "esp32-arduino" | ||
- smartknob: | ||
repository: "scottbez1/smartknob" | ||
folder: "smartknob" | ||
config_dir: "smartknob/firmware" | ||
env_name: "view" | ||
- espurna: | ||
repository: "xoseperez/espurna" | ||
folder: "espurna" | ||
config_dir: "espurna/code" | ||
env_name: "nodemcu-lolin" | ||
- OpenMQTTGateway: | ||
repository: "1technophile/OpenMQTTGateway" | ||
folder: "OpenMQTTGateway" | ||
config_dir: "OpenMQTTGateway" | ||
env_name: "esp32-m5atom" | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
exclude: | ||
- os: windows-latest | ||
project: {"esphome": "", "repository": "esphome/esphome", "folder": "esphome", "config_dir": "esphome", "env_name": "esp32-arduino"} | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: "recursive" | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install PlatformIO | ||
run: pip install -U . | ||
|
||
- name: Check out ${{ matrix.project.repository }} | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: "recursive" | ||
repository: ${{ matrix.project.repository }} | ||
path: ${{ matrix.project.folder }} | ||
|
||
- name: Install ESPHome dependencies | ||
# Requires esptool package as it's used in a custom prescript | ||
if: ${{ contains(matrix.project.repository, 'esphome') }} | ||
run: pip install esptool==3.* | ||
|
||
- name: Compile ${{ matrix.project.repository }} | ||
run: pio run -d ${{ matrix.project.config_dir }} -e ${{ matrix.project.env_name }} | ||
|
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
Submodule examples
updated
27 files
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright (c) 2014-present PlatformIO <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import click | ||
|
||
from platformio.account.commands.destroy import account_destroy_cmd | ||
from platformio.account.commands.forgot import account_forgot_cmd | ||
from platformio.account.commands.login import account_login_cmd | ||
from platformio.account.commands.logout import account_logout_cmd | ||
from platformio.account.commands.password import account_password_cmd | ||
from platformio.account.commands.register import account_register_cmd | ||
from platformio.account.commands.show import account_show_cmd | ||
from platformio.account.commands.token import account_token_cmd | ||
from platformio.account.commands.update import account_update_cmd | ||
|
||
|
||
@click.group( | ||
"account", | ||
commands=[ | ||
account_destroy_cmd, | ||
account_forgot_cmd, | ||
account_login_cmd, | ||
account_logout_cmd, | ||
account_password_cmd, | ||
account_register_cmd, | ||
account_show_cmd, | ||
account_token_cmd, | ||
account_update_cmd, | ||
], | ||
short_help="Manage PlatformIO account", | ||
) | ||
def cli(): | ||
pass |
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
File renamed without changes.
Oops, something went wrong.