-
-
Notifications
You must be signed in to change notification settings - Fork 425
Move from Travis to GitHub Actions #470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
c6c561c
Removed too generic . preventing adding new files to .github
JonathanHuot db20f63
Initial migration from Travis to GitHub Actions
JonathanHuot fdf7aaa
Fix yaml syntax for env variable
JonathanHuot 147cfc9
Fix typo of TOXENV
JonathanHuot 396b8ac
Cleaner name
JonathanHuot 8556801
Fix python2.7 tests
JonathanHuot 7991314
Fix pypy27 support
JonathanHuot 3d61653
Moved to AndreMiras GH Action
JonathanHuot 411a25b
Removed unavailable python versions in GH
JonathanHuot 6d2c359
Revert "Moved to AndreMiras GH Action"
JonathanHuot 3f5209b
Add convertion of .coverage into lcov
JonathanHuot 09eb50d
Moved lcov into default location as the parameter seems not working
JonathanHuot 81dfb45
Add coveralls at the end of pipeline
JonathanHuot ced08e7
Lcov in both coverallsapp actions
JonathanHuot 16d457e
Convert into lcov after each tests
JonathanHuot a903cc2
Skip python27 for coveralls (coverage-lcov not present)
JonathanHuot 1c940a0
Fix typo
JonathanHuot eb8ca20
Double-quote is not allowed
JonathanHuot 16026db
Removed unecessary pip install
JonathanHuot 1166508
Add version to coverallsapp action
JonathanHuot 1cf723e
Fix local theme of docs
JonathanHuot 826c366
Initial version of contributing guide
JonathanHuot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| name: Run Tests | ||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ master ] | ||
| jobs: | ||
| tests: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - python-version: 2.7 | ||
| tox-env: py27 | ||
| - python-version: 3.6 | ||
| tox-env: py36 | ||
| - python-version: 3.7 | ||
| tox-env: py37,docs,readme,black | ||
| - python-version: pypy3 | ||
| tox-env: pypy3 | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install test dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip setuptools | ||
| python -m pip install tox | ||
| - name: Install coveralls dependencies | ||
| if: ${{ matrix.python-version != '2.7' }} | ||
| run: | | ||
| python -m pip install coveralls coverage-lcov toml | ||
| - name: Execute tests with tox | ||
| env: | ||
| TOXENV: ${{ matrix.tox-env }} | ||
| run: | | ||
| tox | ||
| - name: Coverage format into lcov | ||
| if: ${{ matrix.python-version != '2.7' }} | ||
| run: | | ||
| coverage-lcov --output_file_path lcov.info | ||
| - name: Coveralls Parallel | ||
| uses: coverallsapp/[email protected] | ||
| if: ${{ matrix.python-version != '2.7' }} | ||
| with: | ||
| github-token: ${{ secrets.github_token }} | ||
| flag-name: run-${{ matrix.python-version }} | ||
| path-to-lcov: lcov.info | ||
| parallel: true | ||
| finish: | ||
| needs: tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Coveralls Finished | ||
| uses: coverallsapp/github-action@master | ||
| with: | ||
| github-token: ${{ secrets.github_token }} | ||
| path-to-lcov: lcov.info | ||
jtroussard marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| parallel-finished: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,6 @@ dist/ | |
| .tox/ | ||
|
|
||
| .workon | ||
| .*/ | ||
|
|
||
| t.py | ||
|
|
||
|
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| ============ | ||
| Contributing | ||
| ============ | ||
|
|
||
| Test simple changes | ||
| =================== | ||
|
|
||
| Requests-OAuthlib is using `tox`_ as main test tool. | ||
| It helps creating the required virtualenv for your python version. | ||
| For example, if you have installed Python3.7: | ||
|
|
||
| .. sourcecode:: bash | ||
|
|
||
| $ tox -e py37 | ||
|
|
||
|
|
||
| Validate documentation changes | ||
| ============================== | ||
|
|
||
| Tox contains also a build method to generate documentation locally. | ||
|
|
||
| .. sourcecode:: bash | ||
|
|
||
| $ tox -e docs,readme | ||
|
|
||
| Then open the HTML page in `_build/html/index.html` | ||
|
|
||
|
|
||
| Verify all pythons versions | ||
| =========================== | ||
|
|
||
| Requests-OAuthlib supports multiple versions of Python. | ||
| You can test all Python versions conveniently using `tox`_. | ||
|
|
||
| .. sourcecode:: bash | ||
|
|
||
| $ tox | ||
|
|
||
| In order to run successfully, you will need all versions of Python installed. We recommend using `pyenv`_ to install those Python versions. | ||
|
|
||
| .. sourcecode:: bash | ||
|
|
||
| $ pyenv install 2.7.18 | ||
| $ pyenv install 3.4.10 | ||
| $ pyenv install 3.5.10 | ||
| $ pyenv install 3.6.14 | ||
| $ pyenv install 3.7.11 | ||
| $ pyenv install pypy2.7-7.1.1 | ||
| $ pyenv install pypy3.6-7.1.1 | ||
|
|
||
| .. _`tox`: https://tox.readthedocs.io/en/latest/install.html | ||
| .. _`virtualenv`: https://virtualenv.pypa.io/en/latest/installation/ | ||
| .. _`pyenv`: https://github.com/pyenv/pyenv | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,6 +72,7 @@ Getting Started: | |
| examples/examples | ||
|
|
||
| api | ||
| contributing | ||
|
|
||
|
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| coveralls==1.11.1 | ||
| mock==3.0.5 | ||
| requests-mock==1.9.3 | ||
| requests==2.26.0 | ||
| oauthlib[signedtoken]==3.1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.