|
| 1 | +name:"Copilot Setup Steps" |
| 2 | + |
| 3 | +# Automatically run the setup steps when they are changed to allow for easy validation, and |
| 4 | +# allow manual testing through the repository's "Actions" tab |
| 5 | +on: |
| 6 | +workflow_dispatch: |
| 7 | +push: |
| 8 | +paths: |
| 9 | + -.github/workflows/copilot-setup-steps.yml |
| 10 | +pull_request: |
| 11 | +paths: |
| 12 | + -.github/workflows/copilot-setup-steps.yml |
| 13 | + |
| 14 | +# Set the permissions to the lowest permissions possible needed for your steps. |
| 15 | +# Copilot will be given its own token for its operations. |
| 16 | +permissions: |
| 17 | +# If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete. |
| 18 | +contents:read |
| 19 | + |
| 20 | +jobs: |
| 21 | +# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. |
| 22 | +copilot-setup-steps: |
| 23 | +runs-on:ubuntu-latest |
| 24 | + |
| 25 | +# You can define any steps you want, and they will run before the agent starts. |
| 26 | +# If you do not check out your code, Copilot will do this for you. |
| 27 | +steps: |
| 28 | + -name:Checkout code |
| 29 | +uses:actions/checkout@v5.0.0 |
| 30 | + |
| 31 | + -name:Set up Python |
| 32 | +uses:actions/setup-python@v5.6.0 |
| 33 | +with: |
| 34 | +python-version:3.12 |
| 35 | + |
| 36 | + -name:Install dependencies |
| 37 | +run:| |
| 38 | + pip install -r requirements.txt -r requirements-test.txt |