Skip to content

Commit

Permalink
Feature/hackathon add basic challenge (waynehamadi#126)
Browse files Browse the repository at this point in the history
* Useless comment

* Useless comment
  • Loading branch information
waynehamadi committed May 19, 2023
1 parent e2851dc commit f946616
Show file tree
Hide file tree
Showing 12 changed files with 135 additions and 432 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/benchmarks.yml

This file was deleted.

49 changes: 2 additions & 47 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ jobs:
run: isort . --check
if: success() || failure()

- name: Check mypy formatting
run: mypy
if: success() || failure()

test:
permissions:
# Gives the action the necessary permissions for publishing new
Expand All @@ -61,7 +57,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
python-version: [ "3.10" ]

steps:
- name: Check out repository
Expand All @@ -83,7 +79,7 @@ jobs:
- name: Run unittest tests with coverage
run: |
pytest -n auto --cov=autogpt --cov-report term-missing --cov-branch --cov-report xml --cov-report term
pytest tests/integration/challenges/pr_review -n auto --cov=autogpt --cov-report term-missing --cov-branch --cov-report xml --cov-report term
env:
CI: true
PROXY: ${{ secrets.PROXY }}
Expand All @@ -92,44 +88,3 @@ jobs:

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

- name: Stage new files and commit
id: stage_files
run: |
git add tests
git diff --cached --quiet tests && echo "No changes to commit" && exit 0
git config user.email "[email protected]"
git config user.name "GitHub Actions"
git commit -m "Add new cassettes"
TIMESTAMP_COMMIT=$(date +%Y%m%d%H%M%S) # generate a timestamp
echo "TIMESTAMP_COMMIT=$TIMESTAMP_COMMIT" >> $GITHUB_ENV

- name: Create PR
id: create_pr
if: ${{ env.TIMESTAMP_COMMIT != null }}
uses: peter-evans/create-pull-request@v5
with:
commit-message: Update cassettes
branch: cassette-diff-PR-${{ github.event.pull_request.number }}-${{ env.TIMESTAMP_COMMIT }}
title: "Update cassette-diff-PR${{ github.event.pull_request.number }}-${{ env.TIMESTAMP_COMMIT }}"
body: "This PR updates the cassettes. Please merge it."


- name: Check PR
if: ${{ env.TIMESTAMP_COMMIT != null }}
run: |
echo "Pull Request Number - ${{ steps.create_pr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.create_pr.outputs.pull-request-url }}"
- name: Comment PR URL in the current PR
if: ${{ env.TIMESTAMP_COMMIT != null }}
uses: thollander/actions-comment-pull-request@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: |
Please click [HERE](${{ steps.create_pr.outputs.pull-request-url }}) and merge this PR to update the cassettes.
- name: Fail if new PR created
if: ${{ env.TIMESTAMP_COMMIT != null }}
run: exit 1
58 changes: 0 additions & 58 deletions .github/workflows/docker-cache-clean.yml

This file was deleted.

115 changes: 0 additions & 115 deletions .github/workflows/docker-ci.yml

This file was deleted.

81 changes: 0 additions & 81 deletions .github/workflows/docker-release.yml

This file was deleted.

Loading

0 comments on commit f946616

Please sign in to comment.