Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
Remove chart generation for now (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
waynehamadi authored Sep 1, 2023
1 parent 36955cd commit f1ce7f6
Showing 1 changed file with 0 additions and 75 deletions.
75 changes: 0 additions & 75 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit f1ce7f6

Please sign in to comment.