Skip to content

Commit ce3601d

Browse files
committed
Switch run-tests to use pytest markers step for setting
1 parent 408fdbb commit ce3601d

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
- name: Set pytest markers
2020
id: pytest-markers
2121
if: ${{ ! inputs.slow-tests }}
22-
run: echo slow-tests='-m "not slow"' >> "$GITHUB_OUTPUT"
22+
run: |
23+
echo slow-tests='-m "not slow"' >> "$GITHUB_OUTPUT"
24+
echo coverage-suffix='fast' >> "$GITHUB_OUTPUT"
2325
2426
- name: SCM Checkout
2527
uses: actions/checkout@v4
@@ -40,18 +42,9 @@ jobs:
4042
export PROJECT_SHORT_TAG=$(poetry run -- nox -s project:get-short-tag)
4143
poetry run -- nox -s test:coverage --
4244
43-
- name: Set coverage name
44-
id: coverage-suffix
45-
run: |
46-
if [[ "${{ inputs.slow-tests }}" == "true" ]]; then
47-
echo value='fast' >> "$GITHUB_OUTPUT"
48-
else
49-
echo value='slow' >> "$GITHUB_OUTPUT"
50-
fi
51-
5245
- name: Upload Artifacts
5346
uses: actions/upload-artifact@v4.6.2
5447
with:
55-
name: coverage-python${{ inputs.python-version }}-${{ steps.coverage-suffix.outputs.value }}
48+
name: coverage-python${{ inputs.python-version }}-${{ steps.pytest-markers.outputs.coverage-suffix }}
5649
path: .coverage
5750
include-hidden-files: true

0 commit comments

Comments
 (0)