Released Version Workflow #54
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: Released Version Workflow | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
Run_Test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.12' | |
- name: Azure Login using Managed Identity | |
uses: azure/login@v2 | |
with: | |
client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
allow-no-subscriptions: true | |
- name: Retrieve Azure Access Token | |
id: ado-token | |
run: | | |
echo "token=$(az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798 | jq -r .accessToken)" >> $GITHUB_OUTPUT | |
- name: Set up virtual environment | |
run: | | |
python -m venv env | |
source env/bin/activate | |
pip install wheel==0.30.0 setuptools==70.0.0 | |
pip install azdev | |
azdev --version | |
azdev setup -r ./ -e azure-devops | |
azdev extension repo add . | |
azdev extension add azure-devops | |
azdev test azure-devops --live --no-exitfirst --series | |
env: | |
AZURE_DEVOPS_EXT_TEST_ORG: ${{ secrets.AZURE_DEVOPS_EXT_TEST_ORG }} | |
AZURE_DEVOPS_EXT_PAT: ${{ steps.ado-token.outputs.token }} | |