Skip to content

Commit

Permalink
fix failing workflow due to azdev version, missing requirements.txt i…
Browse files Browse the repository at this point in the history
…nstall, and Azure Login failure for tests
  • Loading branch information
kevinhillinger committed Jan 17, 2024
1 parent 04c865e commit 93c9734
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
name: Python CI

permissions:
id-token: write
contents: read

on:
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
azdev-linter:
check-style-and-lint:
name: Check style and lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: azdev setup
run: |
python -m venv env
source env/bin/activate
pip install azdev==0.1.48
pip install -r requirements.txt
pip install azdev
azdev setup -r .
azdev extension repo add .
Expand All @@ -27,17 +35,27 @@ jobs:
source env/bin/activate
azdev linter partnercenter
azdev-test:
run-tests:
name: Run Tests
runs-on: ubuntu-latest
environment: dev
steps:
- uses: actions/checkout@v2
- uses: azure/login@v1

- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- run: |
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: azdev setup
run: |
python -m venv env
source env/bin/activate
pip install azdev==0.1.48
pip install -r requirements.txt
pip install azdev
azdev setup -r .
azdev extension repo add ../partnercenter-cli-extension/
azdev extension add partnercenter
Expand Down

0 comments on commit 93c9734

Please sign in to comment.