Skip to content

Commit

Permalink
🧹 refactor(tests): update dependency groups and installation commands
Browse files Browse the repository at this point in the history
- Renamed `dev` group to `tests` for clarity.
- Updated installation commands in README and GitHub Actions.
- Ensures dependencies are installed for testing.
  • Loading branch information
sudoskys committed Jan 13, 2025
1 parent 059c937 commit e988cca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Install dependencies
run: |
pdm install --dev --no-lock -G mermaid
pdm install --no-lock -G mermaid tests
- name: Run Tests
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ To install the library, run:

```bash
pip install telegramify-markdown
pip install telegramify-markdown[mermaid]
```

or, if you use `pdm`:

```shell
pdm add telegramify-markdown
pdm add telegramify-markdown -G mermaid
# -G -> https://pdm-project.org/en/latest/reference/pep621/#optional-dependencies
```

### 🤔 What you want to do?
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ mermaid = [
"Pillow>=10.4.0",
"aiohttp>=3.10.11",
]

[dependency-groups]
dev = [
tests = [
'pytest < 6',
"pytelegrambotapi>=4.22.0",
"python-dotenv>=1.0.1",
'mock >= 1.0.1, < 4; python_version < "3.4"',
]

[project.urls]
Expand Down

0 comments on commit e988cca

Please sign in to comment.