Skip to content

Create coverage.yml

Create coverage.yml #1

Workflow file for this run

name: Azure CLI AzDev Setup
on:
push:
branches:
- dev
workflow_dispatch:
jobs:
github-runner:
name: GitHub 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 --depth 1 -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
azdev extension add "*"
azdev statistics list-command-table CLI --statistics-only
self-hosted-runner:
name: Self-Hosted Runner Setup
runs-on: [self-hosted]
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 --depth 1 -b main https://github.com/Azure/azure-cli-extensions.git ./azure-cli-extensions
- name: Check Out Specific Commits
run: |
set -ev
cd ../azure-cli
git checkout f205ee4
cd ../azure-cli-extensions
git checkout fc5ae18
- 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
azdev extension add "*"
azdev statistics list-command-table CLI --statistics-only