| @@ -0,0 +1,6 @@ | |||||
| [run] | |||||
| branch = true | |||||
| source = | |||||
| kosmorrolib | |||||
| omit = | |||||
| tests/* | |||||
| @@ -35,12 +35,8 @@ jobs: | |||||
| pipenv lock --pre | pipenv lock --pre | ||||
| pipenv sync --dev | pipenv sync --dev | ||||
| - name: Unit tests | - name: Unit tests | ||||
| env: | |||||
| COVERALLS_PRO_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | |||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |||||
| run: | | run: | | ||||
| make test | |||||
| pipenv run coveralls --service=github | |||||
| make legacy-tests | |||||
| unit-tests: | unit-tests: | ||||
| runs-on: ${{ matrix.os }} | runs-on: ${{ matrix.os }} | ||||
| @@ -74,5 +70,5 @@ jobs: | |||||
| COVERALLS_PRO_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | COVERALLS_PRO_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | ||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
| run: | | run: | | ||||
| make test | |||||
| make doctests | |||||
| pipenv run coveralls --service=github | pipenv run coveralls --service=github | ||||
| @@ -2,14 +2,16 @@ black: | |||||
| pipenv run black kosmorrolib tests | pipenv run black kosmorrolib tests | ||||
| .PHONY: test | .PHONY: test | ||||
| tests: legacy-tests | |||||
| python3 tests.py | |||||
| tests: legacy-tests doctests | |||||
| doctests: | |||||
| pipenv run python3 -m coverage run tests.py | |||||
| legacy-tests: | legacy-tests: | ||||
| unset KOSMORRO_LATITUDE; \ | unset KOSMORRO_LATITUDE; \ | ||||
| unset KOSMORRO_LONGITUDE; \ | unset KOSMORRO_LONGITUDE; \ | ||||
| unset KOSMORRO_TIMEZONE; \ | unset KOSMORRO_TIMEZONE; \ | ||||
| LANG=C pipenv run python3 -m coverage run -m unittest tests | |||||
| pipenv run python3 -m coverage run -m unittest tests | |||||
| .PHONY: build | .PHONY: build | ||||
| build: | build: | ||||