更新feishu适配器版本至2.4.0,修改适配器返回值和单测 #544
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: Test | |
on: | |
push: | |
branches: | |
- main | |
- next | |
pull_request: | |
paths: | |
- "nonebot_plugin_saa/**" | |
- "tests/**" | |
- "pyproject.toml" | |
- "poetry.lock" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
fail-fast: false | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON_VERSION: ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python environment | |
uses: ./.github/actions/setup-python | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install prerequisites | |
run: poetry install --with adapters | |
- name: Run Pytest | |
run: poetry run pytest --cov-report xml --cov=./nonebot_plugin_saa | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v3 | |
with: | |
env_vars: OS,PYTHON_VERSION | |
token: ${{ secrets.CODECOV_TOKEN }} |