forked from Azure/azure-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
107 lines (92 loc) · 2.83 KB
/
coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: Azure CLI AzDev Setup
on:
push:
branches:
- dev
workflow_dispatch:
jobs:
first-runner:
name: Frist Runner Setup
runs-on: ubuntu-latest
steps:
- name: Checkout Repositories
run: |
set -ev
# Clone azure-cli
git clone -q --single-branch -b dev https://github.com/Azure/azure-cli.git ./azure-cli
git clone -q --single-branch -b main https://github.com/Azure/azure-cli-extensions.git ./azure-cli-extensions
- name: Set Up Python Environment
run: |
set -ev
python -m venv env
chmod +x env/bin/activate
source ./env/bin/activate
python -m pip install -U pip
- name: Install AzDev
run: |
set -ev
source ./env/bin/activate
pip install azdev
azdev --version
- name: Setup AzDev with Repos
run: |
set -ev
source ./env/bin/activate
azdev setup -c ./azure-cli -r ./azure-cli-extensions --debug
pip list -v
- name: List Azure CLI Commands
run: |
set -ev
source ./env/bin/activate
az --version
pip install setuptools==70.0.0 wheel==0.30.0
azdev extension add "*"
azdev statistics list-command-table CLI --statistics-only
second-runner:
name: Second Runner Setup2
runs-on: ubuntu-latest
steps:
- name: Checkout Repositories
run: |
set -ev
git clone -q --single-branch -b dev https://github.com/Azure/azure-cli.git ./azure-cli
git clone -q --single-branch -b main https://github.com/Azure/azure-cli-extensions.git ./azure-cli-extensions
- name: Check Out Azure CLI Commits
run: |
set -ev
cd ./azure-cli
git checkout f205ee442b992525947ca88edca1254ba8fc278b
git switch -c f205ee442b992525947ca88edca1254ba8fc278b
- name: Check Out Azure CLI Extensions Commits
run: |
set -ev
cd ./azure-cli-extensions
git checkout fc5ae181336f94ac899495a46d1bf47ce1614efa
git switch -c fc5ae181336f94ac899495a46d1bf47ce1614efa
- name: Set Up Python Environment
run: |
set -ev
python -m venv env
chmod +x env/bin/activate
source ./env/bin/activate
python -m pip install -U pip
- name: Install AzDev
run: |
set -ev
source ./env/bin/activate
pip install azdev
azdev --version
- name: Setup AzDev with Repos
run: |
set -ev
source ./env/bin/activate
azdev setup -c ./azure-cli -r ./azure-cli-extensions --debug
pip list -v
- name: List Azure CLI Commands
run: |
set -ev
source ./env/bin/activate
az --version
pip install setuptools==70.0.0 wheel==0.30.0
azdev extension add "*"
azdev statistics list-command-table CLI --statistics-only