Skip to content

Commit ae6bed7

Browse files
Chore: Rearrange Python tests
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
1 parent 003b8b4 commit ae6bed7

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/build-test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,21 @@ jobs:
7676

7777
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7878

79-
- name: "Test Python project [TOX]"
79+
- name: "Test Python project [PYTEST]"
8080
# yamllint disable-line rule:line-length
8181
uses: modeseven-lfreleng-actions/test-python-test-action@main # Testing
8282
with:
8383
python_version: ${{ matrix.python-version }}
8484
report_artefact: true
85-
tox_tests: true
86-
tox_envs: "tests"
8785

88-
- name: "Test Python project [PYTEST]"
86+
- name: "Test Python project [TOX]"
8987
# yamllint disable-line rule:line-length
9088
uses: modeseven-lfreleng-actions/test-python-test-action@main # Testing
9189
with:
9290
python_version: ${{ matrix.python-version }}
9391
report_artefact: true
92+
tox_tests: true
93+
tox_envs: "tests"
9494

9595
python-audit:
9696
name: "Python Audit"

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ requires-python = "<3.13,>=3.11"
1515
readme = "README.md"
1616
license = "Apache-2.0"
1717
license-files = ["LICENSES/Apache-2.0.txt"]
18-
keywords = ["Climate", "Finance"]
18+
keywords = ["GitHub"]
1919
classifiers = [
2020
"Intended Audience :: Developers",
2121
"Intended Audience :: Science/Research",
@@ -47,7 +47,6 @@ osc-github-devops = "osc_github_devops.cli:run"
4747
requires = ["pdm-backend"]
4848
build-backend = "pdm.backend"
4949

50-
5150
[tool.pdm]
5251
distribution = true
5352

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ passenv =
2727
HOME
2828
commands =
2929
pdm install --dev
30-
pytest tests
30+
pytest --cov --cov-report=html:coverage_report tests
3131

3232
[testenv:tests]
3333
allowlist_externals =
3434
pdm
3535
pytest
3636
commands =
3737
pdm install --dev
38-
pytest tests
38+
pytest --cov --cov-report=html:coverage_report tests
3939

4040
[testenv:lint]
4141
description = Perform static analysis and style checks

0 commit comments

Comments
 (0)