mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
Various Github Action improvement (#1610)
This commit is contained in:
@@ -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,7 +1,7 @@
|
||||
# PyGitHub
|
||||
|
||||
[](https://pypi.python.org/pypi/PyGithub)
|
||||

|
||||

|
||||
[](https://pygithub.readthedocs.io/en/latest/?badge=latest)
|
||||
[](https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License)
|
||||
[](https://join.slack.com/t/pygithub-project/shared_invite/zt-duj89xtx-uKFZtgAg209o6Vweqm8xeQ)
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
comment:
|
||||
after_n_builds: 4
|
||||
Reference in New Issue
Block a user