fix: Dont create assistants per user #299
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: lint | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
env: | |
POETRY_VERSION: "1.7.1" | |
# This env var allows us to get inline annotations when ruff has complaints. | |
RUFF_OUTPUT_FORMAT: github | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Only lint on the min and max supported Python versions. | |
# It's extremely unlikely that there's a lint issue on any version in between | |
# that doesn't show up on the min or max versions. | |
# | |
# GitHub rate-limits how many jobs can be running at any one time. | |
# Starting new jobs is also relatively slow, | |
# so linting on fewer versions makes CI faster. | |
python-version: | |
- "3.11" | |
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: lint | |
- name: Check Poetry File | |
shell: bash | |
run: poetry check | |
- name: Check lock file | |
shell: bash | |
run: poetry lock --check | |
- name: Install dependencies | |
run: poetry install --with dev | |
- name: Get .mypy_cache to speed up mypy | |
uses: actions/cache@v3 | |
env: | |
SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2" | |
with: | |
path: | | |
./.mypy_cache | |
key: mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ hashFiles('./poetry.lock') }} | |
- name: Analysing the code with our lint | |
run: | | |
make lint |