Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(example): improve example #12

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 23 additions & 11 deletions src/examples/example.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,37 @@
description: Sample example description.
description: |
Uploading pytest JUnit reports to CI Issues.

usage:
version: 2.1

orbs:
ci-issues: mergifyio/[email protected]
python: circleci/[email protected]
mergifyio: mergifyio/[email protected]

jobs:
ci-job:
docker:
- image: cimg/ubuntu:current
run_tests:
executor:
name: python/default
tag: 3.12.5
steps:
- checkout
- python/install-packages:
pkg-manager: poetry
- run: pytest -v -s --junitxml=reports/junit.xml
- ci-issues/upload:
token: MERGIFY_SECRET_TOKEN
- run:
name: Run tests
command: |
mkdir test_results
poetry run pytest -vv --junitxml=test_results/report.xml
- mergifyio/upload:
token: MERGIFY_CI_ISSUES_TOKEN
repository_url: <<pipeline.trigger_parameters.github_app.repo_url>>
report_paths: reports/junit.xml
report_paths: test_results/report.xml
- store_test_results:
path: test_results

workflows:
continuous_integration:
jobs:
- ci-job:
- run_tests:
context:
- test_context
- ci_secrets
Loading