Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Turn on pytest #20

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source = shell_logger

[report]
skip_covered = False
fail_under = 80
fail_under = 0
show_missing = True
exclude_lines =
pragma: no cover
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["3.8", "3.9", "3.10", "3.11"]
version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:

- name: Check out the commit
Expand All @@ -39,13 +39,14 @@ jobs:
- name: Test install
run: python3 -m pip install .

# - name: Test with pytest
# run: python3 -m pytest --cov=shell_logger example/ test/
- name: Test with pytest
run: python3 -m pytest --cov=shell_logger test/

# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: sandialabs/shell-logger

- name: Check documentation spelling
run: make spelling SPHINXOPTS="-W --keep-going"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.coverage
.pytest_cache
.vscode
__pycache__
test/coverage.json
test/coverage.xml
Expand Down
13 changes: 13 additions & 0 deletions test/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""
Create the ``test`` package.

This ``__init__.py`` file creates the ``test`` package, such that tests
can relative-import from modules in the sibling ``shell_logger``
directory.
"""

# © 2024 National Technology & Engineering Solutions of Sandia, LLC
# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the
# U.S. Government retains certain rights in this software.

# SPDX-License-Identifier: BSD-3-Clause
Loading
Loading