-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.33 KB
/
pull_request_python_azure.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
name: Pulumi_Pull_Request_Python_Azure
on:
- pull_request
jobs:
preview:
name: Preview
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9.x']
python-example: ['azure-py-rg-storageaccounts', 'azure-py-vnet', 'azure-py-subscriptionid-from-resourcegroup', 'azure-py-databricks', 'azure-py-redis']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: |
echo "python3 venv setup"
python3 -m venv venv
echo "python3 source activate"
source venv/bin/activate
echo "python pip3 install"
pip3 install -r requirements.txt
working-directory: ${{ matrix.python-example }}
- uses: pulumi/actions@v3
with:
command: preview
stack-name: dev
comment-on-pr: true
github-token: ${{ secrets.GITHUB_TOKEN }}
work-dir: ${{matrix.python-example }}
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
ARM_CLIENT_ID: ${{secrets.ARM_CLIENT_ID}}
ARM_CLIENT_SECRET: ${{secrets.ARM_CLIENT_SECRET}}
ARM_TENANT_ID: ${{secrets.ARM_TENANT_ID}}
ARM_SUBSCRIPTION_ID: ${{secrets.ARM_SUBSCRIPTION_ID}}