forked from waynehamadi/Auto-GPT
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/hackathon add basic challenge (waynehamadi#126)
* Useless comment * Useless comment
- Loading branch information
1 parent
e2851dc
commit f946616
Showing
12 changed files
with
135 additions
and
432 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -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 | ||
|
@@ -61,7 +57,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
python-version: [ "3.10" ] | ||
|
||
steps: | ||
- name: Check out repository | ||
|
@@ -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 }} | ||
|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.