Skip to content

Commit

Permalink
Merge pull request #3 from YpNo/feat/docker_image_builder_v1
Browse files Browse the repository at this point in the history
feat(docker_image_builder_v1): Configuration test
  • Loading branch information
YpNo authored Oct 12, 2024
2 parents c41bb76 + 5f2d153 commit 89b25e1
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ updates:
directory: "." # Location of package manifests
schedule:
interval: "weekly"
ignore:
- dependency-name: "aiomqtt"
# For Express, ignore all Dependabot updates for version 4 and 5
versions: ["2.3.x"]
14 changes: 14 additions & 0 deletions .github/workflows/auto-releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Automatic Releases
on:
push:
tags:
- "v*.*.*"

jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Automatic Releases
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
14 changes: 5 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
name: Docker Image CI

on:
# push:
# branches: [ "main" ]
push:
tags:
- "v*.*.*"
# pull_request:
# branches: [ "main" ]
# release:
# types: [published]
pull_request:
branches:
- main
types: [closed]

jobs:
docker:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest
steps:
- name: Docker meta
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/label.yml → .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ on: [pull_request_target]

jobs:
label:

runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- uses: actions/labeler@v5
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python Actions
name: Lint and Tests
on:
push:
branches: [ main ]
Expand All @@ -23,8 +23,8 @@ jobs:
run: |
python3 -m pip install -r requirements.txt
- name: Venv in Github Path
run: echo "$PWD/.venv/bin" >> $GITHUB_PATH
# - name: Venv in Github Path
# run: echo "$PWD/.venv/bin" >> $GITHUB_PATH

- name: Black
uses: microsoft/action-python@0.7.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests
name: Stale - issues and pull requests management

on:
schedule:
Expand Down
2 changes: 1 addition & 1 deletion mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async def mqtt_reader(client: aiomqtt.Client, devices: list):
"""
# fmt: off
devs = {
MQTT_TOPIC_CONTROL.format(name=d.name): d for d in devices # pyright: ignore [reportAttributeAccessIssue]
MQTT_TOPIC_CONTROL.format(name=d.name): d for d in devices # pyright: ignore [reportAttributeAccessIssue]
}
# fmt: on
async with client.messages() as messages:
Expand Down

0 comments on commit 89b25e1

Please sign in to comment.