Add instruction and conversational data support #202
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: integration-tests | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- "**.py" | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "**.py" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
POETRY_VERSION: "1.7.1" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
name: "integration_test python v${{ matrix.python-version }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }} | |
uses: "./.github/actions/poetry_setup" | |
with: | |
python-version: ${{ matrix.python-version }} | |
poetry-version: ${{ env.POETRY_VERSION }} | |
cache-key: core | |
- name: Install dependencies | |
shell: bash | |
run: poetry install --with quality,tests | |
- name: Install together | |
run: | | |
poetry run pip install . | |
- name: Run integration tests | |
shell: bash | |
env: | |
TOGETHER_API_KEY: ${{ secrets.TOGETHER_API_KEY }} | |
run: | | |
make integration_tests | |
- name: Check no new files were created | |
shell: bash | |
run: | | |
set -eu | |
STATUS="$(git status)" | |
echo "$STATUS" | |
# grep will exit non-zero if the target message isn't found, | |
# and `set -e` above will cause the step to fail. | |
echo "$STATUS" | grep 'nothing to commit, working tree clean' |