Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthIsUp committed Dec 25, 2020
1 parent b63e53e commit 45efc08
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 25 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
run:
name: "tests & coverage"
runs-on: macos-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
Expand All @@ -19,27 +22,27 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 2.7
python-version: ${{ matrix.python-version }}

- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-test.txt
pip install -e .
- name: Lint
run: ./run-tests.sh -l

- name: Unit tests
run: ./run-tests.sh

- name: Install coverage dependencies
run: pip install -r requirements-ci.txt
# - name: Install coverage dependencies
# run: pip install -r requirements-ci.txt

- name: Codacy
run: python-codacy-coverage -r coverage.xml -c ${{ github.sha }} || exit 0
# - name: Codacy
# run: python-codacy-coverage -r coverage.xml -c ${{ github.sha }} || exit 0

- name: Coveralls
run: coveralls || exit 0
# - name: Coveralls
# run: coveralls || exit 0

- name: Codecov
run: bash <(curl -s https://codecov.io/bash) || exit 0
# - name: Codecov
# run: bash <(curl -s https://codecov.io/bash) || exit 0
9 changes: 0 additions & 9 deletions requirements-test.txt

This file was deleted.

16 changes: 10 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,21 @@ def run_tests(self):
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Application Frameworks',
]
requirements = [
install_requires = [
'six',
'requests>=2.25,<3',
]
tests_require = [
'coverage',
'pytest',
'pytest_cov',
'pytest_httpbin',
'pytest_localserver',
'pyobjc-framework-Cocoa==5.3',
'pytest==4.6.10',
'pytest-cov==2.8.1',
'pytest-httpbin==1.0.0',
'pytest-localserver==0.5.0',
'flake8==3.8.1',
'flake8-docstrings==1.5.0',
]

zip_safe = False

setup(
Expand All @@ -84,7 +88,7 @@ def run_tests(self):
package_data=package_data,
include_package_data=True,
classifiers=classifiers,
install_requires=requirements,
install_requires=install_requires,
tests_require=tests_require,
cmdclass={'test': PyTestCommand},
zip_safe=zip_safe,
Expand Down

0 comments on commit 45efc08

Please sign in to comment.