Skip to content

Commit c0d1041

Browse files
add copilot setup steps (#41369)
* copilot setup * add index-url to allowlist so we can install pylint-guidelines-checker
1 parent f6c685b commit c0d1041

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Copilot Setup Steps
2+
3+
on: workflow_dispatch
4+
5+
env:
6+
COPILOT_AGENT_FIREWALL_ALLOW_LIST: https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/
7+
8+
jobs:
9+
copilot-setup-steps:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: read
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.9'
23+
cache: 'pip'
24+
25+
- name: Create and activate virtual environment
26+
run: |
27+
python -m venv .venv
28+
source .venv/bin/activate
29+
echo "VIRTUAL_ENV=$(pwd)/.venv" >> $GITHUB_ENV
30+
echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
31+
32+
- name: Install Dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
python -m pip install -r eng/ci_tools.txt

0 commit comments

Comments
 (0)