Closed 3tractorrides closed 10 months ago
b3a974eb4f
)[!TIP] I can email you next time I complete a pull request if you set up your email here!
The sandbox appears to be unavailable or down.
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
.github/workflows/test_workflow.yml
✓ https://github.com/3tractorrides/release-notes-formatter/commit/ac4a624b02990b73d1a9aa08d15c3a7c499ee07c Edit
Create .github/workflows/test_workflow.yml with contents:
• Create a new file named `test_workflow.yml` in the `.github/workflows` directory.
• At the top of the file, define the name of the workflow and the triggers. The workflow should be triggered on pull requests and pushes to the `main` branch. This can be done with the following YAML: ```yaml name: Run Tests on: push: branches: - main pull_request: branches: - main ```
• Define a job that runs the tests. This job should run on an ubuntu-latest runner, checkout the code, set up Python 3.8, install dependencies, and run the tests. This can be done with the following YAML: ```yaml jobs: test: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Set up Python 3.8 uses: actions/setup-python@v2 with: python-version: 3.8 - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Run tests run: python -m unittest discover ```
I have finished reviewing the code for completeness. I did not find errors for sweep/create_a_github_actions_workflow_that_au
.
💡 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
Details
Unit Tests: Please create a Github actions workflow that runs tests for pull requests and when things are merged into
main
.Checklist
- [X] Create `.github/workflows/test_workflow.yml` ✓ https://github.com/3tractorrides/release-notes-formatter/commit/ac4a624b02990b73d1a9aa08d15c3a7c499ee07c [Edit](https://github.com/3tractorrides/release-notes-formatter/edit/sweep/create_a_github_actions_workflow_that_au/.github/workflows/test_workflow.yml)