Skip to content

Commit 78bf1b9

Browse files
authored
Merge pull request #52 from sandialabs/pytest-round-2
Turn on pytest in CI
2 parents 7bd0613 + a3ff573 commit 78bf1b9

File tree

7 files changed

+79
-56
lines changed

7 files changed

+79
-56
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ defaults:
1313

1414
jobs:
1515
test:
16-
runs-on: ubuntu-latest
16+
runs-on: macos-latest
1717
strategy:
1818
matrix:
19-
version: ["3.8", "3.9", "3.10", "3.11"]
19+
version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
2020
steps:
2121

2222
- name: Check out the commit
@@ -39,17 +39,17 @@ jobs:
3939
- name: Test install
4040
run: python3 -m pip install .
4141

42-
# - name: Test with pytest
43-
# run: python3 -m pytest --cov=shell_logger example/ test/
44-
45-
# - name: Upload coverage reports to Codecov
46-
# uses: codecov/codecov-action@v3
47-
# env:
48-
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
42+
- name: Test with pytest
43+
uses: nick-fields/retry@v3
44+
with:
45+
timeout_minutes: 10
46+
max_attempts: 3
47+
command: python3 -m pytest --verbose --cov=shell_logger test/
4948

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

5454
- name: Check documentation coverage
5555
run: make coverage SPHINXOPTS="-W --keep-going"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.coverage
22
.pytest_cache
3+
.vscode
34
__pycache__
45
test/coverage.json
56
test/coverage.xml

doc/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ sphinx-autodoc-typehints
66
sphinx-copybutton
77
sphinx-rtd-theme
88
sphinxcontrib-programoutput
9-
sphinxcontrib-spelling

doc/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"sphinx_copybutton",
3838
"sphinx_rtd_theme",
3939
"sphinxcontrib.programoutput",
40-
"sphinxcontrib.spelling",
4140
]
4241
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
4342

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ classifiers = [
2828
"Operating System :: POSIX",
2929
"Programming Language :: Python :: 3",
3030
"Programming Language :: Python :: 3 :: Only",
31-
"Programming Language :: Python :: 3.7",
31+
"Programming Language :: Python :: 3.8",
32+
"Programming Language :: Python :: 3.9",
33+
"Programming Language :: Python :: 3.10",
34+
"Programming Language :: Python :: 3.11",
35+
"Programming Language :: Python :: 3.12",
3236
"Topic :: Software Development",
3337
"Topic :: Software Development :: Debuggers",
3438
"Topic :: Software Development :: Documentation",
@@ -40,7 +44,7 @@ classifiers = [
4044

4145

4246
[tool.poetry.dependencies]
43-
python = ">=3.7"
47+
python = ">=3.8"
4448

4549

4650
[tool.poetry.dev-dependencies]

test/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Requirements for testing `ShellLogger`.
22

3+
distro
34
mock >= 4
45
mypy
56
pre-commit

0 commit comments

Comments
 (0)