Various Github Action improvement (#1610)

This commit is contained in:
Liuyang Wan
2020-07-27 12:15:38 +08:00
committed by GitHub
parent 85e71361fb
commit 416f2d0f2e
4 changed files with 12 additions and 10 deletions
@@ -1,16 +1,18 @@
name: check
name: CI
on:
pull_request:
push:
branches: master
pull_request:
jobs:
check:
test:
runs-on: ubuntu-latest
name: test (Python ${{ matrix.python-version }})
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python-version }}"
@@ -18,10 +20,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
- name: Run tests
run: tox
- name: Upload coverage to Codecov
if: matrix.python-version == 3.6
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
@@ -3,7 +3,7 @@ on:
release:
types: [created]
jobs:
deploy:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2