Skip to content

Commit 87797fb

Browse files
Merge pull request #28 from microsoft/azdupdates
new azure dev val file
2 parents 61c9ca6 + b2cb3e0 commit 87797fb

File tree

1 file changed

+23
-24
lines changed

1 file changed

+23
-24
lines changed

.github/workflows/azure-dev-validation.yml

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,26 @@ permissions:
88
contents: read
99
id-token: write
1010
pull-requests: write
11-
jobs:
12-
template_validation_job:
13-
runs-on: ubuntu-latest
14-
environment: dev
15-
name: Template validation
16-
steps:
17-
# Step 1: Checkout the code from your repository
18-
- name: Checkout code
19-
uses: actions/checkout@v4
20-
# Step 2: Validate the Azure template using microsoft/template-validation-action
21-
- name: Validate Azure Template
22-
uses: microsoft/[email protected]
23-
id: validation
24-
env:
25-
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
26-
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
27-
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
28-
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
29-
AZURE_ENV_NAME: ${{ secrets.AZURE_ENV_NAME }}
30-
AZURE_LOCATION: ${{ secrets.AZURE_LOCATION }}
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
# Step 3: Print the result of the validation
33-
- name: Print result
34-
run: cat ${{ steps.validation.outputs.resultFile }}
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.11"]
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -r src/App/requirements.txt
29+
pip install flake8 # Ensure flake8 is installed explicitly
30+
31+
- name: Run flake8 and pylint
32+
run: |
33+
flake8 --config=.flake8 src/App/backend # Specify the directory to lint

0 commit comments

Comments
 (0)