Bump pydantic from 1.10.9 to 1.10.13 (#52) #168
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: Default | |
on: | |
push: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check_modified_files: | |
name: Check modified files | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: dorny/paths-filter@v2 | |
id: check-files | |
with: | |
filters: | | |
frontend_modified: | |
- "front_end/**" | |
backend_modified: | |
- "Dockerfile" | |
- 'llm_service/**' | |
- pyproject.toml | |
- poetry.lock | |
outputs: | |
frontend_modified: ${{ steps.check-files.outputs.frontend_modified }} | |
backend_modified: ${{ steps.check-files.outputs.backend_modified }} | |
frontend_test: | |
name: Tests & Lints LLM Gateway Frontend | |
if: needs.check_modified_files.outputs.frontend_modified == 'true' | |
runs-on: ubuntu-latest | |
needs: | |
- check_modified_files | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16.13.1 | |
- name: Install dependencies | |
run: | | |
npm install -g yarn | |
(cd front_end && yarn install) | |
- name: Check compatible licenses | |
run: (cd front_end && yarn check-license) | |
- name: Run linting | |
run: (cd front_end && yarn lint) | |
- name: Run Tests | |
run: (cd front_end && yarn test) | |
backend_tests: | |
name: Tests & Lints LLM Gateway Backend | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Poetry | |
run: pip install poetry==1.3.2 # gitleaks:allow | |
- uses: actions/setup-python@v4 | |
with: | |
python-version-file: .python-version | |
cache: poetry | |
- name: Install Python dependencies | |
working-directory: ${{ github.workspace }} | |
run: | | |
poetry install --no-root --no-interaction | |
- name: Run style guide, linter and typing checks | |
working-directory: ${{ github.workspace }} | |
run: | | |
source $(poetry env info --path)/bin/activate | |
flake8 llm_gateway | |
- name: Run Python Test Suite | |
run: poetry run pytest | |
env: | |
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/llm_gateway" |