Skip to content

Commit da28a23

Browse files
committed
Rename task coverage to test:coverage
1 parent 28098b4 commit da28a23

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
python-version: ${{ matrix.python-version }}
140140

141141
- name: Run Tests and Collect Coverage
142-
run: poetry run nox -s coverage -- -- --db-version ${{ matrix.exasol-version }}
142+
run: poetry run nox -s test:coverage -- -- --db-version ${{ matrix.exasol-version }}
143143

144144
- name: Upload Artifacts
145145
uses: actions/[email protected]

exasol/toolbox/nox/_metrics.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ def report(session: Session) -> None:
2828
* :code:`rm .coverage .lint.txt`
2929
3030
* Run the following targets:
31-
- :code:`nox -s coverage`
32-
- :code:`nox -s lint`
31+
- :code:`nox -s test:coverage`
32+
- :code:`nox -s lint:code`
33+
- :code:`nox -s lint:security`
3334
"""
3435
formats = tuple(fmt.name.lower() for fmt in Format)
3536
usage = "nox -s project:report -- [options]"
@@ -51,7 +52,7 @@ def report(session: Session) -> None:
5152
)
5253
if not all(file.exists() for file in required_files):
5354
session.error(
54-
"Please make sure you run the `coverage`, `security` and the `lint` target first"
55+
"Please make sure you run the `test:coverage`, `lint:security` and the `lint:code` target first"
5556
)
5657
sha1 = str(
5758
session.run("git", "rev-parse", "HEAD", external=True, silent=True)

exasol/toolbox/nox/_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def integration_tests(session: Session) -> None:
9393
_integration_tests(session, PROJECT_CONFIG, context)
9494

9595

96-
@nox.session(name="coverage", python=False)
96+
@nox.session(name="test:coverage", python=False)
9797
def coverage(session: Session) -> None:
9898
"""Runs all tests (unit + integration) and reports the code coverage"""
9999
context = _context(session, coverage=True)

exasol/toolbox/templates/github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
python-version: ${{ matrix.python-version }}
146146

147147
- name: Run Tests and Compute Coverage
148-
run: poetry run nox -s coverage -- -- --db-version ${{ matrix.exasol-version }}
148+
run: poetry run nox -s test:coverage -- -- --db-version ${{ matrix.exasol-version }}
149149

150150
- name: Upload Artifacts
151151
uses: actions/[email protected]

0 commit comments

Comments
 (0)