-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run tests in min and current 3.x python versions
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 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 |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [2.7, 3.7] | ||
python-version: [2.7, 3.6, '3.x'] | ||
env: | ||
MYGEOTAB_DATABASE: ${{ secrets.MYGEOTAB_DATABASE }} | ||
MYGEOTAB_USERNAME: ${{ secrets.MYGEOTAB_USERNAME }} | ||
|
@@ -42,15 +42,15 @@ jobs: | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
pipenv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Test with pytest (Python 3) | ||
if: matrix.python-version >= 3.5 | ||
if: matrix.python-version > 3.5 | ||
run: | | ||
pipenv run py.test --cov-config .coveragerc --cov-report xml:output/coverage.xml --cov mygeotab --junitxml output/python-test-results.xml --benchmark-min-rounds=3 --benchmark-storage=file://output/ --benchmark-autosave tests/ | ||
pipenv run py.test --cov-config .coveragerc --cov-report xml:output/coverage.xml --cov mygeotab --junitxml output/python${{ matrix.python-version }}-test-results.xml --benchmark-min-rounds=3 --benchmark-storage=file://output/ --benchmark-autosave tests/ | ||
- name: Test with pytest (Python 2) | ||
if: matrix.python-version < 3 | ||
run: | | ||
pipenv run py.test --ignore-glob='*_async.py' --junitxml output/python-test-results.xml --benchmark-min-rounds=3 --benchmark-storage=file://output/ --benchmark-autosave tests/ | ||
pipenv run py.test --ignore-glob='*_async.py' --junitxml output/python${{ matrix.python-version }}-test-results.xml --benchmark-min-rounds=3 --benchmark-storage=file://output/ --benchmark-autosave tests/ | ||
- name: Upload coverage to Codecov | ||
if: matrix.python-version >= 3.5 | ||
if: matrix.python-version >= 3.10 | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
|