Skip to content

Commit 6644b65

Browse files
authored
docs(example): improve example (#12)
1 parent 1336d8e commit 6644b65

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

src/examples/example.yml

+23-11
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,37 @@
1-
description: Sample example description.
1+
description: |
2+
Uploading pytest JUnit reports to CI Issues.
23
34
usage:
45
version: 2.1
6+
57
orbs:
6-
ci-issues: mergifyio/[email protected]
8+
python: circleci/[email protected]
9+
mergifyio: mergifyio/[email protected]
10+
711
jobs:
8-
ci-job:
9-
docker:
10-
- image: cimg/ubuntu:current
12+
run_tests:
13+
executor:
14+
name: python/default
15+
tag: 3.12.5
1116
steps:
1217
- checkout
1318
- python/install-packages:
1419
pkg-manager: poetry
15-
- run: pytest -v -s --junitxml=reports/junit.xml
16-
- ci-issues/upload:
17-
token: MERGIFY_SECRET_TOKEN
20+
- run:
21+
name: Run tests
22+
command: |
23+
mkdir test_results
24+
poetry run pytest -vv --junitxml=test_results/report.xml
25+
- mergifyio/upload:
26+
token: MERGIFY_CI_ISSUES_TOKEN
1827
repository_url: <<pipeline.trigger_parameters.github_app.repo_url>>
19-
report_paths: reports/junit.xml
28+
report_paths: test_results/report.xml
29+
- store_test_results:
30+
path: test_results
31+
2032
workflows:
2133
continuous_integration:
2234
jobs:
23-
- ci-job:
35+
- run_tests:
2436
context:
25-
- test_context
37+
- ci_secrets

0 commit comments

Comments
 (0)