Skip to content

Merge pull request #92 from Azure-Samples/sdkupdate #125

Merge pull request #92 from Azure-Samples/sdkupdate

Merge pull request #92 from Azure-Samples/sdkupdate #125

Workflow file for this run

name: Python checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_call:
jobs:
test_package:
name: Test ${{ matrix.os }} Python ${{ matrix.python_version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# macos-13 is x84 and macos-14-large is arm64
os: ["ubuntu-20.04", "windows-latest", "macos-13", "macos-14-large"]
python_version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Lint with ruff
run: ruff .
- name: Check formatting with black
run: black . --check --verbose
- name: Run Pytest tests
run: python3 -m pytest