mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: CI / Python tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master, dev, develop]
|
|
pull_request:
|
|
branches: [main, master, dev, develop]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
unit-tests:
|
|
name: Unit Tests - py${{ matrix.python-version }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.11", "3.12", "3.13"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: 'pip'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip setuptools wheel
|
|
pip install -e packages/reme_ai_studio -e ".[dev,core]"
|
|
pip install --no-deps -e plugins/auto-fin
|
|
pip install coverage
|
|
|
|
- name: Run unit tests
|
|
run: |
|
|
coverage run -m pytest tests/unit plugins/auto-fin \
|
|
-v \
|
|
--tb=long \
|
|
-s \
|
|
--log-cli-level=WARNING
|
|
|
|
- name: Generate coverage report
|
|
run: coverage report -m
|