Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/run-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
echo LAMOOM_API_TOKEN=${{ secrets.LAMOOM_API_TOKEN }} >> .env
echo NEBIUS_API_KEY=${{ secrets.NEBIUS_API_KEY }} >> .env
echo CUSTOM_API_KEY=${{ secrets.CUSTOM_API_KEY }} >> .env
echo GOOGLE_API_KEY=${{ secrets.GOOGLE_API_KEY }} >> .env
echo SEARCH_ENGINE_ID=${{ secrets.SEARCH_ENGINE_ID }} >> .env
cat .env

- name: Install dependencies
Expand All @@ -30,15 +32,21 @@ jobs:
- name: Install Poetry
run: pip install poetry

- name: Cache Poetry Dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-

- name: Install Python
uses: actions/setup-python@v3
with:
python-version: 3.11
cache: poetry

- name: Install Python libraries
run: poetry install

- name: Run tests with pytest
run: |
poetry run make test
run: poetry run make test
Loading