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
+1 -1
View File
@@ -1,7 +1,7 @@
# PyGitHub
[![PyPI](https://img.shields.io/pypi/v/PyGithub.svg)](https://pypi.python.org/pypi/PyGithub)
![check](https://github.com/PyGithub/PyGithub/workflows/check/badge.svg)
![CI](https://github.com/PyGithub/PyGithub/workflows/CI/badge.svg)
[![readthedocs](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](https://pygithub.readthedocs.io/en/latest/?badge=latest)
[![License](https://img.shields.io/badge/license-LGPL-blue.svg)](https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License)
[![Slack](https://img.shields.io/badge/Slack%20channel-%20%20-blue.svg)](https://join.slack.com/t/pygithub-project/shared_invite/zt-duj89xtx-uKFZtgAg209o6Vweqm8xeQ)
+2
View File
@@ -0,0 +1,2 @@
comment:
after_n_builds: 4