👷 修复 pypi ci 文件错误
This commit is contained in:
parent
0ccf5afd90
commit
fe55224b23
19
.github/workflows/python.yml
vendored
19
.github/workflows/python.yml
vendored
@ -2,25 +2,25 @@ name: Upload Python Package
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
# 当master分支有push时,触发action
|
# 当master分支有push时,触发action
|
||||||
push:
|
#push:
|
||||||
branches:
|
#branches:
|
||||||
- master
|
#- master
|
||||||
|
|
||||||
# 当一个pr被合并到master时,触发action
|
# 当一个pr被合并到master时,触发action
|
||||||
pull_request:
|
#pull_request:
|
||||||
branches:
|
#branches:
|
||||||
- master
|
#- master
|
||||||
|
|
||||||
# 当发布时,触发action
|
# 当发布时,触发action
|
||||||
#release:
|
release:
|
||||||
# types: [created]
|
types: [created]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.6", "3.7", "3.8"]
|
python-version: ["3.6"]
|
||||||
steps:
|
steps:
|
||||||
# 此步骤使用 GitHub 的 https://github.com/actions/checkout
|
# 此步骤使用 GitHub 的 https://github.com/actions/checkout
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -31,6 +31,7 @@ jobs:
|
|||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
# 安装依赖
|
# 安装依赖
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user