mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-18 06:21:24 -05:00
68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
name: Checks
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
format:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Hatch
|
|
uses: pypa/hatch@install
|
|
- run: hatch run ruff format --check
|
|
working-directory: ./python
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Hatch
|
|
uses: pypa/hatch@install
|
|
- run: hatch run ruff check
|
|
working-directory: ./python
|
|
|
|
mypy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Hatch
|
|
uses: pypa/hatch@install
|
|
- run: hatch run mypy
|
|
working-directory: ./python
|
|
|
|
pyright:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Hatch
|
|
uses: pypa/hatch@install
|
|
- run: hatch run pyright
|
|
working-directory: ./python
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Hatch
|
|
uses: pypa/hatch@install
|
|
- run: hatch run +python=${{ matrix.python-version }} test-matrix:pytest -n auto
|
|
working-directory: ./python
|
|
|
|
docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Hatch
|
|
uses: pypa/hatch@install
|
|
- run: hatch run docs:check
|
|
working-directory: ./python
|