sweepai / sweep

Sweep: open-source AI-powered Software Developer for small features and bug fixes.
https://sweep.dev
Other
7.28k stars 420 forks source link

Sweep: run pytest in github actions #2258

Open wwzeng1 opened 8 months ago

wwzeng1 commented 8 months ago

Details

No response

Checklist - [X] ``.github/workflows/python-tests.yml`` ✅ Commit 5dcd373 - [X] `.github/workflows/python-tests.yml` ✅ Sandbox ran successfully ![Flowchart](http://24.199.78.105:8082/public/906844a5eb6058d5b5e3c65304f658a03931f7157e04cb65b996910c392d748e_2258_flowchart.svg)
sweep-nightly[bot] commented 8 months ago

Here's the PR! https://github.com/sweepai/sweep/pull/2382.

💎 Sweep Pro: I'm creating this ticket using GPT-4. You have unlimited GPT-4 tickets.

Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/sweepai/sweep/blob/b579b020426efbb3e3025977c2bf77df15e40af0/tests/archive/link_matcher.py#L1-L19 https://github.com/sweepai/sweep/blob/b579b020426efbb3e3025977c2bf77df15e40af0/sweepai/sandbox/src/sandbox_utils.py#L73-L146 https://github.com/sweepai/sweep/blob/b579b020426efbb3e3025977c2bf77df15e40af0/tests/archive/test_cst_splitter.py#L1-L86 https://github.com/sweepai/sweep/blob/b579b020426efbb3e3025977c2bf77df15e40af0/tests/archive/test_gha_logs.py#L1-L106

I also found some related docs:

Summary of related docs from https://pygithub.readthedocs.io/en/stable:

The relevant documentation snippet does not provide any information related to running pytest in GitHub Actions.

Sources:


Step 2: ⌨️ Coding


Sandbox logs for 5dcd373
git add . && pre-commit run --files .github/workflows/python-tests.yml || exit 0 1/3 ✓
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...............................................................Passed
black................................................(no files to check)Skipped
isort................................................(no files to check)Skipped
autoflake............................................(no files to check)Skipped
if [[ ".github/workflows/python-tests.yml" == *.py ]]; then poetry run pylint --errors-only .github/workflows/python-tests.yml; else exit 0; fi 2/3 ✓
(nothing was outputted)
if [[ ".github/workflows/python-tests.yml" == *.py ]]; then PYTHONPATH=. poetry run python .github/workflows/python-tests.yml; else exit 0; fi 3/3 ✓
(nothing was outputted)


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/add-github-actions-workflow_2.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord