v4.0.3 Release #449
Workflow file for this run
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: Langchain Tests | |
permissions: | |
contents: read | |
id-token: write | |
#on: | |
# schedule: | |
# - cron: '0 4 * * *' | |
# workflow_dispatch: {} | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
langchain-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.sha }} | |
- name: configure aws credentials | |
uses: aws-actions/[email protected] | |
with: | |
role-to-assume: ${{ secrets.aws_role_arn }} | |
aws-region: us-east-1 | |
role-duration-seconds: 21600 | |
role-session-name: deeplake-${{ github.sha }} | |
- name: configure environment | |
working-directory: .github/langchain-tests | |
shell: bash | |
run: | | |
python3 -m venv .venv | |
source .venv/bin/activate | |
python3 setup_actions.py | |
curl -sSL https://install.python-poetry.org | python3 - | |
poetry install | |
pip install -r requirements.txt | |
- name: run tests | |
working-directory: .github/langchain-tests | |
env: | |
ACTIVELOOP_TOKEN: ${{ secrets.ACTIVELOOP_HUB_TOKEN }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
BUCKET: ${{ secrets.AWS_S3_BUCKET }} | |
run: | | |
source .venv/bin/activate | |
python3 -m pytest test_activeloop* |