repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | name: ci |
| #2 | |
| #3 | on: |
| #4 | push: |
| #5 | branches: [main] |
| #6 | paths: |
| #7 | - 'mem0/**' |
| #8 | - 'tests/**' |
| #9 | - 'embedchain/**' |
| #10 | - '.github/workflows/**' |
| #11 | - 'pyproject.toml' |
| #12 | pull_request: |
| #13 | paths: |
| #14 | - 'mem0/**' |
| #15 | - 'tests/**' |
| #16 | - 'embedchain/**' |
| #17 | |
| #18 | jobs: |
| #19 | check_changes: |
| #20 | runs-on: ubuntu-latest |
| #21 | outputs: |
| #22 | mem0_changed: ${{ steps.filter.outputs.mem0 }} |
| #23 | embedchain_changed: ${{ steps.filter.outputs.embedchain }} |
| #24 | steps: |
| #25 | - uses: actions/checkout@v3 |
| #26 | - uses: dorny/paths-filter@v2 |
| #27 | id: filter |
| #28 | with: |
| #29 | filters: | |
| #30 | mem0: |
| #31 | - 'mem0/**' |
| #32 | - 'tests/**' |
| #33 | - '.github/workflows/**' |
| #34 | - 'pyproject.toml' |
| #35 | embedchain: |
| #36 | - 'embedchain/**' |
| #37 | |
| #38 | build_mem0: |
| #39 | needs: check_changes |
| #40 | if: needs.check_changes.outputs.mem0_changed == 'true' |
| #41 | runs-on: ubuntu-latest |
| #42 | strategy: |
| #43 | matrix: |
| #44 | python-version: ["3.10", "3.11", "3.12"] |
| #45 | steps: |
| #46 | - uses: actions/checkout@v3 |
| #47 | - name: Set up Python ${{ matrix.python-version }} |
| #48 | uses: actions/setup-python@v4 |
| #49 | with: |
| #50 | python-version: ${{ matrix.python-version }} |
| #51 | - name: Clean up disk space |
| #52 | run: | |
| #53 | df -h |
| #54 | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL |
| #55 | sudo docker image prune --all --force |
| #56 | sudo docker builder prune -a |
| #57 | df -h |
| #58 | - name: Install Hatch |
| #59 | run: pip install hatch |
| #60 | - name: Load cached venv |
| #61 | id: cached-hatch-dependencies |
| #62 | uses: actions/cache@v3 |
| #63 | with: |
| #64 | path: .venv |
| #65 | key: venv-mem0-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }} |
| #66 | - name: Install GEOS Libraries |
| #67 | run: sudo apt-get update && sudo apt-get install -y libgeos-dev |
| #68 | - name: Install dependencies |
| #69 | run: | |
| #70 | pip install --upgrade pip |
| #71 | pip install -e ".[test,graph,vector_stores,llms,extras]" |
| #72 | pip install ruff |
| #73 | if: steps.cached-hatch-dependencies.outputs.cache-hit != 'true' |
| #74 | - name: Run Linting |
| #75 | run: make lint |
| #76 | - name: Run tests and generate coverage report |
| #77 | run: make test |
| #78 | |
| #79 | build_embedchain: |
| #80 | needs: check_changes |
| #81 | if: needs.check_changes.outputs.embedchain_changed == 'true' |
| #82 | runs-on: ubuntu-latest |
| #83 | strategy: |
| #84 | matrix: |
| #85 | python-version: ["3.9", "3.10", "3.11", "3.12"] |
| #86 | steps: |
| #87 | - uses: actions/checkout@v3 |
| #88 | - name: Set up Python ${{ matrix.python-version }} |
| #89 | uses: actions/setup-python@v4 |
| #90 | with: |
| #91 | python-version: ${{ matrix.python-version }} |
| #92 | - name: Install Hatch |
| #93 | run: pip install hatch |
| #94 | - name: Load cached venv |
| #95 | id: cached-hatch-dependencies |
| #96 | uses: actions/cache@v3 |
| #97 | with: |
| #98 | path: .venv |
| #99 | key: venv-embedchain-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }} |
| #100 | - name: Install dependencies |
| #101 | run: cd embedchain && make install_all |
| #102 | if: steps.cached-hatch-dependencies.outputs.cache-hit != 'true' |
| #103 | - name: Run Formatting |
| #104 | run: | |
| #105 | mkdir -p embedchain/.ruff_cache && chmod -R 777 embedchain/.ruff_cache |
| #106 | cd embedchain && hatch run format |
| #107 | - name: Lint with ruff |
| #108 | run: cd embedchain && make lint |
| #109 | - name: Run tests and generate coverage report |
| #110 | run: cd embedchain && make coverage |
| #111 | - name: Upload coverage reports to Codecov |
| #112 | uses: codecov/codecov-action@v3 |
| #113 | with: |
| #114 | file: coverage.xml |
| #115 | env: |
| #116 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| #117 |