diff --git a/.github/workflows/ci_mocked_api.yml b/.github/workflows/ci_mocked_api.yml index 6aba225..ddb4903 100644 --- a/.github/workflows/ci_mocked_api.yml +++ b/.github/workflows/ci_mocked_api.yml @@ -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 }}" diff --git a/.github/workflows/ci_true_api.yml b/.github/workflows/ci_true_api.yml index ad945a1..5b04248 100644 --- a/.github/workflows/ci_true_api.yml +++ b/.github/workflows/ci_true_api.yml @@ -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 }}" diff --git a/tests/tests_mocked_api.py b/tests/tests_mocked_api.py index 85b2e46..f4c2581 100644 --- a/tests/tests_mocked_api.py +++ b/tests/tests_mocked_api.py @@ -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),