-
Notifications
You must be signed in to change notification settings - Fork 268
50 lines (42 loc) · 1.39 KB
/
released-version.yml
File metadata and controls
50 lines (42 loc) · 1.39 KB
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
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 }}