mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 00:55:07 +08:00
✅ add test flags for os, python version
This commit is contained in:
parent
8494768a89
commit
6713f4d9b0
8
.github/workflows/codecov.yml
vendored
8
.github/workflows/codecov.yml
vendored
@ -6,14 +6,17 @@ on:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Run Pytest and Upload Coverage
|
||||
name: Test Coverage
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
fail-fast: false
|
||||
env:
|
||||
OS: ${{ matrix.os }}
|
||||
PYTHON_VERSION: ${{ matrix.python-version }}
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
@ -30,5 +33,6 @@ jobs:
|
||||
- name: Upload coverage report
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
env_vars: OS,PYTHON_VERSION
|
||||
files: ./tests/coverage.xml
|
||||
flags: unittests
|
||||
|
Loading…
Reference in New Issue
Block a user