forked from Azure/azure-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
109 lines (94 loc) · 2.92 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
108
109
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
pip install setuptools==70.0.0 wheel==0.30.0
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
azdev extension add "*"
azdev statistics list-command-table CLI --statistics-only --debug
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: 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
pip install setuptools==70.0.0 wheel==0.30.0
azdev setup -c ./azure-cli -r ./azure-cli-extensions --debug
pip list -v
- name: Check Out Azure CLI Commits
run: |
set -ev
cd ./azure-cli
git checkout f98ba8062f08bf5b7460260c56916bd3074bf9e5
git switch -c f98ba8062f08bf5b7460260c56916bd3074bf9e5
- name: Check Out Azure CLI Extensions Commits
run: |
set -ev
cd ./azure-cli-extensions
git checkout fb4789b71446378d91abd47359d389f6fc369663
git switch -c fb4789b71446378d91abd47359d389f6fc369663
- name: List Azure CLI Commands
run: |
set -ev
source ./env/bin/activate
az --version
azdev extension add "*"
pip3 uninstall -y pyOpenSSL
pip3 install pyOpenSSL==22.0.0
azdev statistics list-command-table CLI --statistics-only --debug