fix(ai-module): add retries in the requests #124
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "[pytest] Unique SDK" | |
env: | |
PACKAGE: unique_sdk | |
on: | |
pull_request: | |
paths: | |
- 'unique_sdk/**' | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install Poetry | |
run: | | |
POETRY_VERSION='1.8.3' | |
PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx install poetry==$POETRY_VERSION | |
- name: Install dependencies | |
working-directory: ${{ env.PACKAGE }} | |
run: poetry install | |
- name: Run tests | |
working-directory: ${{ env.PACKAGE }} | |
run: poetry run pytest |