Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit b77f515

Browse files
Pytest (#57)
* adding pytest coverage commands * remove unneeded python versions form testing * updated poetry version * updated coverate command * Update python-app.yml added coverall support * fixed poetry lock --------- Co-authored-by: Anil Natha <anilnatha@users.noreply.github.com>
1 parent 85b8a42 commit b77f515

File tree

4 files changed

+93
-5
lines changed

4 files changed

+93
-5
lines changed

.github/workflows/python-app.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ jobs:
4444
UNITY_USER: '${{ secrets.UNITY_TEST_USER }}'
4545
UNITY_PASSWORD: '${{ secrets.UNITY_TEST_PASSWORD }}'
4646
run: |
47-
poetry run pytest -m "not regression"
47+
poetry run pytest --cov=unity_sds_client -m "not regression"
4848
- name: Regression Test with pytest
4949
env:
5050
UNITY_USER: '${{ secrets.UNITY_TEST_USER }}'
5151
UNITY_PASSWORD: '${{ secrets.UNITY_TEST_PASSWORD }}'
5252
run: |
53-
poetry run pytest -o log_cli=true --log-cli-level=DEBUG -m "regression"
53+
poetry run pytest --cov=unity_sds_client -o log_cli=true --log-cli-level=DEBUG
54+
- name: Coveralls
55+
uses: coverallsapp/github-action@v2

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
strategy:
4444
fail-fast: false
4545
matrix:
46-
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
46+
python-version: [ "3.9", "3.10" ]
4747
os: [ ubuntu-22.04, macos-latest, windows-latest ]
4848
runs-on: ${{ matrix.os }}
4949
steps:

poetry.lock

Lines changed: 86 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ pystac = "^1.7.3"
2323
pytest = "^7.1.2"
2424
flake8 = "^4.0.1"
2525
pytest-mock = "^3.8.2"
26-
26+
coverage = "^7.3.1"
27+
pytest-cov = "^4.1.0"
2728

2829
[tool.pytest.ini_options]
2930
markers = [

0 commit comments

Comments
 (0)