Skip to content

Ruff format

Ruff format #596

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
DEFAULT_PYTHON: "3.10"
RUFF_VERSION: 0.14.10
UV_VERSION: 0.9.22
permissions:
contents: read
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: chartboost/ruff-action@v1
with:
args: "check --fix"
version: ${{ env.RUFF_VERSION }}
- uses: chartboost/ruff-action@v1
with:
args: "format --check"
version: ${{ env.RUFF_VERSION }}
pytest:
runs-on: ubuntu-latest
needs:
- ruff
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
uses: actions/setup-python@v6
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: ${{ env.UV_VERSION }}
- name: Install Requirements
run: uv sync --frozen --all-extras
- name: Test with pytest (skip entirely if secrets missing)
env:
office365_python_sdk_securevars: ${{ secrets.OFFICE365_PYTHON_SDK_SECUREVARS }}
run: |
if [ -z "${{env.office365_python_sdk_securevars}}" ]; then \
echo "No secrets available; skipping pytest"; \
exit 0; \
else \
uv run pytest; \
fi