Skip to content

Commit

Permalink
ci: add example tests for deepsearch in CI workflow
Browse files Browse the repository at this point in the history
provos committed Jan 31, 2025
1 parent 7ac9041 commit 105d726
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
@@ -46,6 +46,42 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}

test-examples:
runs-on: ubuntu-latest
strategy:
matrix:
example: [deepsearch ]
python-version: ['3.10']

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies and test for ${{ matrix.example }}
run: |
cd examples/${{ matrix.example }}
poetry install
poetry run pytest
- name: Comment PR with example test status
uses: actions/github-script@v6
if: github.event_name == 'pull_request'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.name,
body: '✅ Example tests passed for ${{ matrix.example }} (Python ${{ matrix.python-version }})!'
})
lint:
runs-on: ubuntu-latest
steps:

0 comments on commit 105d726

Please sign in to comment.