Skip to content

Commit

Permalink
🧪 暂时关闭codecov action
Browse files Browse the repository at this point in the history
  • Loading branch information
BalconyJH committed Jan 23, 2024
1 parent a94ebcf commit b3ccffb
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: Code Coverage

on:
push:
branches:
- "main"
- "master"
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["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:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pdm install -G test
- name: Run tests
run: pdm run pytest -n auto --cov=nonebot_plugin_bh3_elysian_realm --cov-report xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
#name: Code Coverage
#
#on:
# push:
# branches:
# - "main"
# - "master"
# pull_request:
#
#concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true
#
#jobs:
# test:
# name: Test
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# python-version: ["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:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Set up Python ${{ matrix.python-version }}
# uses: pdm-project/setup-pdm@v3
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: pdm install -G test
# - name: Run tests
# run: pdm run pytest -n auto --cov=nonebot_plugin_bh3_elysian_realm --cov-report xml
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit b3ccffb

Please sign in to comment.