Skip to content

Commit

Permalink
Merge pull request #29 from watchdogpolska/dev_ext
Browse files Browse the repository at this point in the history
v1.0.02
  • Loading branch information
PiotrIw authored Mar 28, 2024
2 parents 8f5e7f7 + f43ef63 commit 156fb33
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/pre-commit-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Code linters - pre-commit checks

on:
push:
branches:
- master
- dev
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run pre-commit hooks
uses: pre-commit/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Python application
name: Python application test

on:
push:
Expand All @@ -19,7 +19,7 @@ jobs:
run: docker compose build daemon
- name: Run app container
run: docker compose up -d daemon
- name: Run pre-commit hooks
uses: pre-commit/[email protected]
# - name: Run pre-commit hooks
# uses: pre-commit/[email protected]
- name: Run tests
run: docker compose run daemon python test.py
2 changes: 0 additions & 2 deletions daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ def main():
config_printout = copy.deepcopy(config)
if "password" in config_printout.get("imap", {}):
config_printout["imap"]["password"] = "********"
print("Configuration to print: ", config_printout)
print("Configuration: ", config)

session = requests.Session()
print(f"Starting daemon version {__version__}")
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.0.01"
__version__ = "1.0.02"

if __name__ == "__main__":
print(f"v{__version__}")

0 comments on commit 156fb33

Please sign in to comment.