chore(grouping): migration for hnsw index #188
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: Tests | |
on: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
TEST: 1 | |
EXTRA_COMPOSE_TEST_OPTIONS: "-e NO_REAL_MODELS=1 -e NO_SENTRY_INTEGRATION=1" | |
steps: | |
- name: Remove unnecessary files | |
run: | | |
df / -h | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
df / -h | |
- uses: actions/checkout@v3 | |
- name: Clean for PR build | |
run: | | |
rm -rf ./models | |
mkdir models | |
while IFS= read -r line | |
do | |
sed -i.bak "/^$line/d" requirements.txt | |
done < model.requirements.txt | |
shell: bash | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build docker image (with cache) | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
load: true | |
cache-from: type=gha | |
cache-to: type=gha,mode=min | |
- name: Prepare docker compose environment | |
run: | | |
make update | |
- name: Typecheck with mypy | |
run: | | |
make mypy | |
- name: Test with pytest | |
run: | | |
make test | |
- name: Upload to codecov | |
if: ${{ always() }} | |
uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044 # v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: '.artifacts/coverage.xml' | |
override_commit: ${{ github.event.pull_request.head.sha }} | |
plugin: noop | |
verbose: true |