-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run CodeCov through github actions and remove Tox (#225)
* Migrate travis to gthub actions: * Update test dependencies * Fix version mismatch and doc name * Update readme to fix validation issue
- Loading branch information
Showing
7 changed files
with
105 additions
and
73 deletions.
There are no files selected for viewing
This file contains 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,61 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
CI: | ||
continue-on-error: true | ||
runs-on: ${{ matrix.os }} | ||
# Supported Versions: | ||
# https://github.com/actions/python-versions/blob/main/versions-manifest.json | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest] | ||
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, pypy2, pypy3] | ||
exclude: | ||
- os: windows-latest | ||
python-version: 3.6 | ||
include: | ||
- os: linux | ||
python-version: 3.4 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python environment | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install Requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
pip install -r requirements.txt | ||
pip install -r test/requirements.txt | ||
python setup.py install | ||
- name: Run Linter | ||
run: | | ||
flake8 setup.py dropbox example test | ||
- name: Run Unit Tests | ||
run: | | ||
pytest test/test_dropbox_unit.py | ||
Docs: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python environment | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.7' | ||
- name: Install Requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install twine sphinx | ||
pip install -r requirements.txt | ||
pip install -r test/requirements.txt | ||
python setup.py install | ||
- name: Test Doc Generation | ||
run: | | ||
sphinx-build -b html docs build/html | ||
- name: Test Dist Generation | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine check dist/* |
This file was deleted.
Oops, something went wrong.
This file contains 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,34 @@ | ||
name: Coverage | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
schedule: | ||
- cron: 0 0 * * * | ||
|
||
jobs: | ||
Coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python environment | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.7' | ||
- name: Install Requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install coverage pytest | ||
pip install -r requirements.txt | ||
pip install -r test/requirements.txt | ||
python setup.py install | ||
- name: Generate Unit Test Coverage | ||
run: | | ||
coverage run --rcfile=.coveragerc -m pytest test/test_dropbox_unit.py | ||
coverage xml | ||
- name: Publish Coverage | ||
uses: codecov/[email protected] | ||
with: | ||
flags: unit | ||
fail_ci_if_error: true |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pytest | ||
mock | ||
pytest-mock | ||
coverage |
This file contains 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