chore: Parallelize pytest runs #251
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: Assistants Web - Format, Build & Validate | |
on: | |
push: | |
branches: [main] | |
paths: | |
- src/interfaces/assistants_web/** | |
pull_request: {} | |
jobs: | |
interface_tests: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: src/interfaces/assistants_web | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Start backend (for OpenAPI) | |
run: docker compose up backend -d | |
- name: Set up Node.js and install dependencies | |
uses: ./.github/actions/assistants-web-install | |
- name: Check format | |
run: npm run format | |
- name: Check build | |
run: npm run build | |
- name: Generate client | |
run: npm run generate:client && npm run format:write | |
- name: Check generated client | |
run: git diff --exit-code ./src/cohere-client/generated || (echo "Generated client is outdated. Please regenerate and commit." && exit 1) |