Skip to content

对,整体部分内容进行了修正,增加了我们在其他端的配置上的完整性 确保了,在其他设备上可以和本地开发环境一致 #119

对,整体部分内容进行了修正,增加了我们在其他端的配置上的完整性 确保了,在其他设备上可以和本地开发环境一致

对,整体部分内容进行了修正,增加了我们在其他端的配置上的完整性 确保了,在其他设备上可以和本地开发环境一致 #119

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.11"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip packages
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install -e ml-sharp/
pip install pytest pytest-cov
- name: Run tests
run: |
pytest tests/ -v --tb=short
smoke-run-sh:
name: Smoke run.sh (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run clean-clone smoke checks
run: |
python -m pip install --upgrade pip
chmod +x run.sh
./run.sh --check-only
./run.sh --demo
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install linting tools
run: |
python -m pip install --upgrade pip
pip install ruff black isort mypy
- name: Check code formatting with Black
run: black --check src/aylm tests
- name: Check import sorting with isort
run: isort --check-only src/aylm tests
- name: Lint with Ruff
run: ruff check src/aylm tests
- name: Type check with mypy (informational)
run: mypy src/aylm --ignore-missing-imports || echo "mypy found issues (non-blocking)"