Kluster.ai backend #259
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: Curator testing workflow | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-integration: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Set Locale | |
run: | | |
sudo locale-gen "en_US.UTF-8" | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
- name: Install dependencies | |
run: | | |
pip install poetry | |
poetry install --with dev --extras vllm | |
- name: Run ruff | |
run: | | |
poetry run ruff check . --output-format=github | |
poetry run ruff format . --check | |
- name: Run tests with coverage | |
run: | | |
poetry run pytest --cov='bespokelabs' --cov-report=html --cov-fail-under=80 tests/ |