langflow/.github/workflows/test.yml
Gabriel Luiz Freitas Almeida f7e5a3d422 🔧 chore(test.yml): update POETRY_VERSION environment variable to "1.5.0" to use the latest version of Poetry
🔒 chore(test.yml): add OPENAI_API_KEY environment variable to securely store the OpenAI API key
2023-09-05 11:53:30 -03:00

34 lines
730 B
YAML

name: test
on:
push:
branches: [main]
pull_request:
branches: [dev]
env:
POETRY_VERSION: "1.5.0"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry==$POETRY_VERSION
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install dependencies
run: poetry install
- name: Run unit tests
run: |
make tests