Skip to content

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Oct 4, 2023
1 parent b5e8ae3 commit 62e98bd
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9"] # , "3.10", "3.11", "3.12"

steps:
- uses: actions/checkout@v4
Expand All @@ -26,10 +26,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
pip install '.[dev]'
pip install -e '.[dev]'
- name: Set up API keys
env:
ICESPEAK_KEYS_DIR: "keys"
ICESPEAK_KEYS_DIR: "keys/"
AZURE_TTS_KEY: ${{ secrets.AZURE_TTS_KEY }}
AWS_POLLY_KEY: ${{ secrets.AWS_POLLY_KEY }}
GOOGLE_TTS_KEY: ${{ secrets.GOOGLE_TTS_KEY }}
Expand All @@ -41,8 +41,13 @@ jobs:
# Google TTS key
echo "$GOOGLE_TTS_KEY" > keys/GoogleServiceAccount.json
- name: Test with pytest
env:
ICESPEAK_KEYS_DIR: "keys/"
AZURE_TTS_KEY: ${{ secrets.AZURE_TTS_KEY }}
AWS_POLLY_KEY: ${{ secrets.AWS_POLLY_KEY }}
GOOGLE_TTS_KEY: ${{ secrets.GOOGLE_TTS_KEY }}
run: |
pytest --run-slow
pytest --run-slow -vvvrP --log-level=DEBUG
- name: Lint with pre-commit hooks
run: |
pre-commit run --all-files
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ python3 -m pip install .
```

In order to use the CLI interface, `tts`, install with:

```sh
python3 -m pip install '.[cli]'
```
Expand Down
4 changes: 4 additions & 0 deletions src/icespeak/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ def __init__(self, voice: str = SETTINGS.DEFAULT_VOICE) -> None:
for the provided speech synthesis engine.
"""
super().__init__()
from pprint import pprint

print(type(VOICES))
pprint(VOICES)
if not len(VOICES):
raise RuntimeError(
"No voices available. Please install the API key for at least one voice engine."
Expand Down
5 changes: 5 additions & 0 deletions src/icespeak/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,8 @@ class Keys(BaseModel):
"Could not load Google API key, ASR with Google will not work. Error: %s",
err,
)


from pprint import pprint

pprint(API_KEYS)

0 comments on commit 62e98bd

Please sign in to comment.