-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev'
- Loading branch information
Showing
123 changed files
with
7,467 additions
and
1,416 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: DCO Check | ||
name: community | DCO Check | ||
|
||
on: | ||
pull_request: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: clean | Cleanup Old Workflow Runs | ||
|
||
on: | ||
schedule: | ||
- cron: '0 3 * * 0' # Runs every Sunday at 03:00 UTC | ||
workflow_dispatch: # Allows manual trigger | ||
|
||
jobs: | ||
cleanup: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Delete old workflow runs | ||
env: | ||
GH_PAT: ${{ secrets.GH_PAT }} | ||
REPO: ${{ github.repository }} | ||
DAYS: 100 # Adjust the number of days if needed | ||
run: | | ||
# Get current timestamp | ||
NOW=$(date -u +"%Y-%m-%dT%H:%M:%SZ") | ||
# Fetch all workflow runs | ||
runs=$(curl -s -H "Authorization: token $GH_PAT" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
"https://api.github.com/repos/$REPO/actions/runs" | jq -c '.workflow_runs[]') | ||
# Loop through each run | ||
echo "$runs" | while read -r run; do | ||
created_at=$(echo "$run" | jq -r '.created_at') | ||
run_id=$(echo "$run" | jq -r '.id') | ||
# Convert timestamps to seconds | ||
created_seconds=$(date -d "$created_at" +%s) | ||
now_seconds=$(date -d "$NOW" +%s) | ||
# Calculate age of workflow run | ||
age_days=$(( (now_seconds - created_seconds) / 86400 )) | ||
if [ "$age_days" -gt "$DAYS" ]; then | ||
echo "Deleting workflow run ID: $run_id (Created: $created_at, Age: $age_days days)" | ||
curl -X DELETE -H "Authorization: token $GH_PAT" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
"https://api.github.com/repos/$REPO/actions/runs/$run_id" | ||
else | ||
echo "Skipping workflow run ID: $run_id (Created: $created_at, Age: $age_days days)" | ||
fi | ||
done |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: ruff format | ||
name: lint | ruff format | ||
on: [ pull_request ] | ||
|
||
jobs: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: ruff lint | ||
name: lint | ruff lint | ||
on: [ pull_request ] | ||
|
||
jobs: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: test | eval_framework | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [labeled, synchronize] | ||
|
||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
run_eval_framework_test: | ||
uses: ./.github/workflows/reusable_python_example.yml | ||
with: | ||
example-location: ./evals/eval_framework/run_eval.py | ||
secrets: | ||
LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} | ||
GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: community | contributors leaderboard | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 1" # Runs every Monday | ||
workflow_dispatch: # Allows manual trigger | ||
|
||
jobs: | ||
update-contributors: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Generate Contributor List | ||
run: | | ||
echo "## 💫 Contributors" > CONTRIBUTORS.md | ||
echo "" >> CONTRIBUTORS.md | ||
echo "Thanks to our amazing contributors! 💖" >> CONTRIBUTORS.md | ||
echo "" >> CONTRIBUTORS.md | ||
echo '<a href="https://github.com/topoteretes/cognee/graphs/contributors">' >> CONTRIBUTORS.md | ||
echo ' <img src="https://contrib.rocks/image?repo=topoteretes/cognee" />' >> CONTRIBUTORS.md | ||
echo '</a>' >> CONTRIBUTORS.md | ||
echo "" >> CONTRIBUTORS.md | ||
echo "## 🏆 Top Contributors" >> CONTRIBUTORS.md | ||
echo "" >> CONTRIBUTORS.md | ||
echo "| Rank | Contributor | Contributions |" >> CONTRIBUTORS.md | ||
echo "|------|------------|---------------|" >> CONTRIBUTORS.md | ||
git shortlog -sne | sort -rn | head -10 | awk '{print "| "NR" | ["$2"](https://github.com/"$2") | "$1" Commits |"}' >> CONTRIBUTORS.md | ||
- name: Commit and Push Changes | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "[email protected]" | ||
git add CONTRIBUTORS.md | ||
git commit -m "Update contributors list" | ||
git push |
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
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
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
Oops, something went wrong.