Skip to content

Commit f875591

Browse files
authored
Update cicd job name, fix issue with macos, lint and update readme (#11)
* Update cicd job name, fix issue with macos, lint and update readme Signed-off-by: rafsaf <rafal.safin12@gmail.com> * update push rule Signed-off-by: rafsaf <rafal.safin12@gmail.com> --------- Signed-off-by: rafsaf <rafal.safin12@gmail.com>
1 parent abbf674 commit f875591

File tree

6 files changed

+25
-5
lines changed

6 files changed

+25
-5
lines changed

.github/workflows/docker_build.yml renamed to .github/workflows/docker_build_and_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: docker_build
1+
name: docker_build_and_tests
22
on:
33
push:
44
branches:
@@ -15,7 +15,7 @@ permissions:
1515
contents: read
1616

1717
jobs:
18-
docker_build:
18+
docker_build_and_tests:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/type_check.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ name: type-check
22
on:
33
push:
44
branches:
5-
- "**"
5+
- "main"
66
tags-ignore:
77
- "*.*"
8+
pull_request:
9+
branches:
10+
- main
811

912
permissions:
1013
actions: write

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Docker Pulls](https://img.shields.io/docker/pulls/rafsaf/medichaser.svg)](https://hub.docker.com/r/rafsaf/medichaser)
44
[![Latest release](https://img.shields.io/github/v/release/rafsaf/medichaser)](https://github.com/rafsaf/medichaser/releases/latest)
55

6-
MediChaser is a tool for automating Medicover appointment searches. It uses Selenium to interact with the Medicover website, handling login and MFA, and sends notifications when appointments are found.
6+
MediChaser is a tool for automating Medicover appointment searches. It interacts with the Medicover website, handles login and MFA, and sends notifications when appointments are found.
77

88
The application is designed to be run in a Docker container and includes a `ttyd` web terminal for remote management.
99

@@ -203,6 +203,20 @@ You can secure `ttyd` by:
203203
204204
---
205205
206+
## Development
207+
208+
```bash
209+
# 1. install poetry
210+
poetry install
211+
# 2. hack
212+
# 3. lint directly or install pre-commit hooks with poetry run pre-commit install
213+
poetry run pre-commit run -a
214+
# 4. run tests
215+
poetry run pytest
216+
```
217+
218+
---
219+
206220
## Acknowledgements
207221
208222
This project stands on the shoulders of giants. Big thanks to the original authors and inspirations:

docker-compose.tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ services:
88
dockerfile: Dockerfile
99
env_file:
1010
- .env.example
11+
platform: "linux/amd64"

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ services:
1111
- medichaser_data:/app/data
1212
ports:
1313
- 7681:7681
14-
14+
platform: "linux/amd64"
1515
volumes:
1616
medichaser_data:

notifications.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
pushover = get_notifier("pushover")
2828
telegram = get_notifier("telegram")
2929

30+
3031
def prowl_notify(message: str, title: str | None = None) -> None:
3132
if not environ.get("NOTIFIERS_PROWL_API_KEY"):
3233
print(
@@ -48,6 +49,7 @@ def prowl_notify(message: str, title: str | None = None) -> None:
4849
except requests.exceptions.RequestException as e:
4950
print(f"Prowl notification failed:\n{e}")
5051

52+
5153
def pushbullet_notify(message: str, title: str | None = None) -> None:
5254
try:
5355
if title is None:

0 commit comments

Comments
 (0)