Skip to content

Commit

Permalink
Merge pull request #52 from sandialabs/pytest-round-2
Browse files Browse the repository at this point in the history
Turn on pytest in CI
  • Loading branch information
jmgate authored Jul 10, 2024
2 parents 7bd0613 + a3ff573 commit 78bf1b9
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 56 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ defaults:

jobs:
test:
runs-on: ubuntu-latest
runs-on: macos-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,17 +39,17 @@ jobs:
- name: Test install
run: python3 -m pip install .

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

# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Test with pytest
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
command: python3 -m pytest --verbose --cov=shell_logger test/

- name: Check documentation spelling
run: make spelling SPHINXOPTS="-W --keep-going"
working-directory: ./doc
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Check documentation coverage
run: make coverage 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
1 change: 0 additions & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ sphinx-autodoc-typehints
sphinx-copybutton
sphinx-rtd-theme
sphinxcontrib-programoutput
sphinxcontrib-spelling
1 change: 0 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"sphinx_copybutton",
"sphinx_rtd_theme",
"sphinxcontrib.programoutput",
"sphinxcontrib.spelling",
]
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}

Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ classifiers = [
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Documentation",
Expand All @@ -40,7 +44,7 @@ classifiers = [


[tool.poetry.dependencies]
python = ">=3.7"
python = ">=3.8"


[tool.poetry.dev-dependencies]
Expand Down
1 change: 1 addition & 0 deletions test/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Requirements for testing `ShellLogger`.

distro
mock >= 4
mypy
pre-commit
Expand Down
Loading

0 comments on commit 78bf1b9

Please sign in to comment.