[pull] main from Azure:main #180
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Azure SDK Tools | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - "eng/tools/azure-sdk-tools/**" | |
| - ".github/workflows/azure-sdk-tools.yml" | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.13 | |
| - name: Install azure-sdk-tools | |
| run: | | |
| python -m pip install -e eng/tools/azure-sdk-tools[build,ghtools,conda] | |
| python -m pip freeze | |
| shell: bash | |
| - name: Run tests | |
| run: | | |
| pytest ./tests | |
| shell: bash | |
| working-directory: eng/tools/azure-sdk-tools | |
| static-analysis: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.13 | |
| - name: Install azure-sdk-tools | |
| run: | | |
| python -m pip install -e eng/tools/azure-sdk-tools[build,ghtools,conda] | |
| python -m pip install black==24.4.0 | |
| python -m pip freeze | |
| shell: bash | |
| - name: Run black | |
| run: | | |
| black --check --config eng/black-pyproject.toml eng/tools/azure-sdk-tools --exclude 'templates' | |
| shell: bash | |
| dev-setup-and-import: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.13 | |
| - name: Run dev_setup to install specified packages | |
| run: | | |
| python scripts/dev_setup.py --packageList azure-storage-blob,azure-appconfiguration | |
| shell: bash | |
| - name: Validate imports | |
| run: | | |
| python - <<'PY' | |
| from azure.storage.blob import * | |
| from azure.appconfiguration import * | |
| print("Successful Imports") | |
| PY | |
| shell: bash |