PowerPlatform Dataverse Client SDK Rebranding and Namespace Update #58
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: Python package | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| # Simplified to single Python version (per project requirements) | |
| # Can expand to matrix testing later: strategy.matrix.python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install flake8 black build | |
| if [ -f dev_dependencies.txt ]; then pip install -r dev_dependencies.txt; fi | |
| - name: Check format with black | |
| continue-on-error: true # TODO: fix detected formatting errors and remove this line. | |
| run: | | |
| black src tests --check | |
| - name: Lint with flake8 | |
| run: | | |
| # stop the build if there are Python syntax errors or undefined names | |
| flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
| # exit-zero treats all errors as warnings, matching Agents-for-python approach | |
| flake8 . --count --exit-zero --show-source --statistics | |
| - name: Build package | |
| run: | | |
| python -m build | |
| - name: Install wheel | |
| run: | | |
| python -m pip install dist/*.whl | |
| - name: Test with pytest | |
| run: | | |
| pytest |