generated from yanyongyu/python-poetry-template
-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (39 loc) · 1009 Bytes
/
test-no-adapters.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Test Without Adapters
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: ubuntu-latest
strategy:
fail-fast: false
env:
OS: ubuntu-latest
PYTHON_VERSION: 3.12
steps:
- uses: actions/checkout@v3
- name: Setup Python environment
uses: ./.github/actions/setup-python
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install prerequisites
run: poetry install --without 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 }}