Update coverage.yml #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 pyOpenSSL | |
azdev statistics list-command-table CLI --statistics-only --debug |