Taylor Fox Dahlin
commited on
Use GitHub Actions for CI (#802)
Browse filesTravis-CI recently made changes to their service model, and pytube is likely to exceed their free credits. This PR migrates the functionality provided by Travis CI to GitHub's CI offering, which is free for public repositories.
- .github/workflows/ci.yml +39 -0
- .travis.yml +0 -20
- README.md +1 -1
.github/workflows/ci.yml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: CI testing
|
2 |
+
|
3 |
+
on:
|
4 |
+
pull_request:
|
5 |
+
branches: [ master ]
|
6 |
+
paths-ignore:
|
7 |
+
- '**/README.md'
|
8 |
+
- 'docs/**'
|
9 |
+
|
10 |
+
jobs:
|
11 |
+
ci:
|
12 |
+
runs-on: ubuntu-latest
|
13 |
+
|
14 |
+
strategy:
|
15 |
+
matrix:
|
16 |
+
python: [3.5, 3.6, 3.7, 3.8]
|
17 |
+
|
18 |
+
steps:
|
19 |
+
- name: Checkout repo
|
20 |
+
uses: actions/checkout@v2
|
21 |
+
|
22 |
+
- name: Setup python
|
23 |
+
uses: actions/setup-python@v2
|
24 |
+
with:
|
25 |
+
python-version: ${{ matrix.python }}
|
26 |
+
|
27 |
+
- name: Upgrade pip
|
28 |
+
run: pip install --upgrade pipenv
|
29 |
+
|
30 |
+
- name: Run make ci
|
31 |
+
run: make ci
|
32 |
+
|
33 |
+
# https://github.com/codecov/codecov-action
|
34 |
+
- name: Codecov
|
35 |
+
uses: codecov/codecov-action@v1
|
36 |
+
with:
|
37 |
+
file: .coverage
|
38 |
+
fail_ci_if_error: true
|
39 |
+
|
.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
language: python
|
2 |
-
cache:
|
3 |
-
- apt
|
4 |
-
- pip
|
5 |
-
python:
|
6 |
-
- "3.6"
|
7 |
-
- "3.7"
|
8 |
-
- "3.8"
|
9 |
-
- "3.9-dev"
|
10 |
-
install: "make"
|
11 |
-
script:
|
12 |
-
- make ci
|
13 |
-
before_install:
|
14 |
-
- pip install pipenv --upgrade
|
15 |
-
sudo: false
|
16 |
-
after_success:
|
17 |
-
- codecov
|
18 |
-
- coveralls
|
19 |
-
notifications:
|
20 |
-
# slack: watchcloud:rNoT5kJJakPqwLSKuev6oa4C
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -10,7 +10,7 @@ Ping @ronncc if you would like to help out
|
|
10 |
<img src="https://img.shields.io/pypi/v/pytube.svg" alt="pypi">
|
11 |
<a href="https://travis-ci.org/nficano/pytube"><img src="https://travis-ci.org/nficano/pytube.svg?branch=master" /></a>
|
12 |
<a href="http://python-pytube.readthedocs.io/en/latest/?badge=latest"><img src="https://readthedocs.org/projects/python-pytube/badge/?version=latest" /></a>
|
13 |
-
<a href="https://
|
14 |
<a href="https://pypi.org/project/pytube/"><img src="https://img.shields.io/pypi/dm/pytube.svg" alt="pypi"></a>
|
15 |
<a href="https://pypi.python.org/pypi/pytube/"><img src="https://img.shields.io/pypi/pyversions/pytube.svg" /></a>
|
16 |
<p>
|
|
|
10 |
<img src="https://img.shields.io/pypi/v/pytube.svg" alt="pypi">
|
11 |
<a href="https://travis-ci.org/nficano/pytube"><img src="https://travis-ci.org/nficano/pytube.svg?branch=master" /></a>
|
12 |
<a href="http://python-pytube.readthedocs.io/en/latest/?badge=latest"><img src="https://readthedocs.org/projects/python-pytube/badge/?version=latest" /></a>
|
13 |
+
<a href="https://codecov.io/gh/nficano/pytube"><img src="https://codecov.io/gh/nficano/pytube/branch/master/graph/badge.svg" /></a>
|
14 |
<a href="https://pypi.org/project/pytube/"><img src="https://img.shields.io/pypi/dm/pytube.svg" alt="pypi"></a>
|
15 |
<a href="https://pypi.python.org/pypi/pytube/"><img src="https://img.shields.io/pypi/pyversions/pytube.svg" /></a>
|
16 |
<p>
|