From f1ce7f628e3fbed715842179ce225fecac1c3ee8 Mon Sep 17 00:00:00 2001 From: merwanehamadi Date: Fri, 1 Sep 2023 10:13:39 -0700 Subject: [PATCH] Remove chart generation for now (#347) --- .github/workflows/ci.yml | 75 ---------------------------------------- 1 file changed, 75 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4161f1f08b3..9a5b1c5243f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 "github-bot@agpt.co" - 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 }}