end-to-end #100
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
# If you change this name also do it in ci_metrics.yml | |
name: end-to-end | |
on: | |
workflow_dispatch: # Activate this workflow manually | |
schedule: | |
- cron: "0 0 * * *" | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
paths: | |
- "e2e/**/*.py" | |
- ".github/workflows/e2e.yml" | |
env: | |
PYTHON_VERSION: "3.8" | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
jobs: | |
run: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt install ffmpeg # for local Whisper tests | |
- name: Install Haystack and the dependencies needed for tests | |
run: pip install -r test/test_requirements.txt | |
- name: Run tests | |
run: pytest e2e |