Taylor Fox Dahlin commited on
Commit
b4a8551
·
unverified ·
1 Parent(s): 9e555f0

Use GitHub Actions for CI (#802)

Browse files

Travis-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.

Files changed (3) hide show
  1. .github/workflows/ci.yml +39 -0
  2. .travis.yml +0 -20
  3. 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://coveralls.io/github/nficano/pytube?branch=master"><img src="https://coveralls.io/repos/github/nficano/pytube/badge.svg?branch=master#23e6f7ac56dd3bde" /></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>
 
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>