Skip to content

Commit

Permalink
azure login
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevc committed Jul 12, 2024
1 parent 0f8b297 commit 26dd5ac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/ci_mocked_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ jobs:
- name: Install Dependencies using Poetry
run: poetry install

- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Run pytest
env:
SNAKEMAKE_AZURE_BATCH_ACCOUNT_URL: "${{ secrets.SNAKEMAKE_AZURE_BATCH_ACCOUNT_URL }}"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci_true_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ jobs:
- name: Install Dependencies using Poetry
run: poetry install

- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Run pytest
env:
SNAKEMAKE_AZURE_BATCH_ACCOUNT_URL: "${{ secrets.SNAKEMAKE_AZURE_BATCH_ACCOUNT_URL }}"
Expand Down
1 change: 0 additions & 1 deletion tests/tests_mocked_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
class TestWorkflowsMocked(TestWorkflowsBase):
__test__ = True

@patch("azure.identity.DefaultAzureCredential", return_value=MagicMock())
@patch(
"azure.batch.operations.TaskOperations.add",
new=MagicMock(autospec=True),
Expand Down

0 comments on commit 26dd5ac

Please sign in to comment.