添加引导 以及 登出页面 显示github名称 [登出页面创建组件Noticfication 支持自定义标题 内容 按钮样式 按钮回调 底部保有定时进度条 入参过滤] #1813
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pre-commit | |
on: [push, pull_request] | |
jobs: | |
run: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: True | |
matrix: | |
os: [ubuntu-latest] | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON: '3.9' | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.9 | |
- name: Update setuptools | |
run: | | |
pip install setuptools==68.2.2 wheel==0.41.2 | |
- name: Install AgentScope | |
run: | | |
pip install -q -e .[full] | |
- name: Install pre-commit | |
run: | | |
pre-commit install | |
- name: Pre-commit starts | |
run: | | |
pre-commit run --all-files > pre-commit.log 2>&1 || true | |
cat pre-commit.log | |
if grep -q Failed pre-commit.log; then | |
echo -e "\e[41m [**FAIL**] Please install pre-commit and format your code first. \e[0m" | |
exit 1 | |
fi | |
echo -e "\e[46m ********************************Passed******************************** \e[0m" |