This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove chart generation for now (#347)
- Loading branch information
1 parent
36955cd
commit f1ce7f6
Showing
1 changed file
with
0 additions
and
75 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 |
---|---|---|
|
@@ -297,78 +297,3 @@ jobs: | |
env: | ||
GDRIVE_BASE64: ${{ secrets.GDRIVE_BASE64 }} | ||
GITHUB_REF_NAME: ${{ github.ref_name }} | ||
|
||
generate_charts: | ||
needs: tests | ||
env: | ||
GH_TOKEN: ${{ github.event_name == 'pull_request' && github.token || secrets.PAT }} | ||
min-python-version: '3.10' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
submodules: true | ||
token: ${{ env.GH_TOKEN }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
|
||
- id: get_date | ||
name: Get date | ||
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | ||
|
||
- name: Install Poetry | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python - | ||
- name: Install dependencies | ||
run: | | ||
poetry install -vvv | ||
poetry build | ||
pip install dist/*.whl | ||
- name: Generate charts | ||
run: | | ||
python agbenchmark/reports/processing/gen_combined_chart.py | ||
- name: Upload reports | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: reports/combined_charts/* | ||
|
||
- name: Authenticate and Push to Branch | ||
if: (success() || failure()) && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Auto-GPT-Bot" | ||
git add reports/combined_charts/* || echo "nothing to commit" | ||
commit_message="Add combined charts - $(date +'%Y%m%d%H%M%S')" | ||
git commit -m "${commit_message}" | ||
git stash | ||
current_branch=${{ github.ref_name }} | ||
attempts=0 | ||
max_attempts=3 | ||
while [ $attempts -lt $max_attempts ]; do | ||
git fetch origin $current_branch | ||
git rebase origin/$current_branch | ||
if git push origin HEAD; then | ||
echo "Success!" | ||
exit 0 | ||
else | ||
echo "Attempt $(($attempts + 1)) failed. Retrying..." | ||
attempts=$(($attempts + 1)) | ||
fi | ||
done | ||
echo "Failed after $max_attempts attempts." | ||
env: | ||
GITHUB_REF_NAME: ${{ github.ref_name }} |