Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ name: "Build"
on:
workflow_call:

defaults:
run:
working-directory: "pulp-cli-gem"

jobs:
build:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v6"
with:
path: "pulp-cli-gem"
- name: "Set up Python"
uses: "actions/setup-python@v6"
with:
Expand All @@ -28,8 +34,8 @@ jobs:
with:
name: "pulp_cli_packages"
path: |
.root
dist/
pulp-cli-gem/.root
pulp-cli-gem/dist/
if-no-files-found: "error"
retention-days: 5
...
6 changes: 6 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- "main"
workflow_call:

defaults:
run:
working-directory: "pulp-cli-gem"

jobs:
analyze:
name: "Analyze"
Expand All @@ -19,6 +23,8 @@ jobs:
steps:
- name: "Checkout"
uses: "actions/checkout@v6"
with:
path: "pulp-cli-gem"
- name: "Initialize CodeQL"
uses: "github/codeql-action/init@v4"
with:
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/collect_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ on:
workflow_call:
workflow_dispatch:

defaults:
run:
working-directory: "pulp-cli-gem"

jobs:
collect-changes:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v6"
with:
path: "pulp-cli-gem"
fetch-depth: 0
- name: "Set up Python"
uses: "actions/setup-python@v6"
Expand All @@ -31,17 +36,23 @@ jobs:
- name: "Create Pull Request"
uses: "peter-evans/create-pull-request@v8"
id: "create_pr"
permissions:
contents: "write"
pull-requests: "write"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
title: "Update Changelog"
body: ""
branch: "update_changes"
delete-branch: true
path: "pulp-cli-gem"
- name: "Mark PR automerge"
permissions:
contents: "write"
pull-requests: "write"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
if: "steps.create_pr.outputs.pull-request-number"
env:
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
continue-on-error: true
...
23 changes: 16 additions & 7 deletions .github/workflows/cookiecutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
with:
repository: "pulp/pulp-cli"
path: "pulp-cli"
- uses: "actions/checkout@v6"
- name: "Checkout"
uses: "actions/checkout@v6"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp-cli-gem"
- name: "Set up Python"
uses: "actions/setup-python@v6"
Expand All @@ -45,19 +45,24 @@ jobs:
- name: "Create Pull Request"
uses: "peter-evans/create-pull-request@v8"
id: "create_pr"
permissions:
contents: "write"
pull-requests: "write"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
title: "Update cookiecutter"
body: ""
branch: "update_cookiecutter"
delete-branch: true
path: "pulp-cli-gem"
- name: "Mark PR automerge"
permissions:
contents: "write"
pull-requests: "write"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
if: "steps.create_pr.outputs.pull-request-number"
env:
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
continue-on-error: true
update-dependencies:
runs-on: "ubuntu-latest"
Expand All @@ -68,7 +73,6 @@ jobs:
path: "pulp-cli"
- uses: "actions/checkout@v6"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp-cli-gem"
- name: "Set up Python"
uses: "actions/setup-python@v6"
Expand All @@ -94,18 +98,23 @@ jobs:
- name: "Create Pull Request"
uses: "peter-evans/create-pull-request@v8"
id: "create_pr"
permissions:
contents: "write"
pull-requests: "write"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
title: "Update CLI and GLUE"
body: ""
branch: "update_cli"
delete-branch: true
path: "pulp-cli-gem"
- name: "Mark PR automerge"
permissions:
contents: "write"
pull-requests: "write"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
if: "steps.create_pr.outputs.pull-request-number"
env:
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
continue-on-error: true
...
6 changes: 6 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ name: "Lint"
on:
workflow_call:

defaults:
run:
working-directory: "pulp-cli-gem"

jobs:
lint:
runs-on: "ubuntu-latest"
Expand All @@ -16,6 +20,8 @@ jobs:
steps:
- name: "Checkout"
uses: "actions/checkout@v6"
with:
path: "pulp-cli-gem"
- name: "Set up Python"
uses: "actions/setup-python@v6"
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- name: "Checkout"
uses: "actions/checkout@v6"
with:
path: "pulp-cli-gem"
fetch-depth: 0
- name: "Set up Python"
uses: "actions/setup-python@v6"
Expand All @@ -53,6 +54,7 @@ jobs:
fi
done
shell: "bash"
working-directory: "pulp-cli-gem"
ready-to-ship:
# This is a dummy dependent task to have a single entry for the branch protection rules.
runs-on: "ubuntu-latest"
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,19 @@ concurrency:
group: "${{ github.event.pull_request.number }}-${{ github.workflow }}"
cancel-in-progress: true

defaults:
run:
working-directory: "pulp-cli-gem"

jobs:
apply_labels:
runs-on: "ubuntu-latest"
name: "Label PR"
permissions:
pull-requests: "write"
steps:
- name: "Checkout"
uses: "actions/checkout@v6"
with:
path: "pulp-cli-gem"
fetch-depth: 0
- name: "Set up Python"
uses: "actions/setup-python@v6"
Expand All @@ -38,6 +41,8 @@ jobs:
uv run -q .ci/scripts/pr_labels.py "origin/${{ github.base_ref }}" "${{ github.event.pull_request.head.sha }}" >> "$GITHUB_ENV"
- name: "Apply PR Labels"
uses: "actions/github-script@v8"
permissions:
pull-requests: "write"
with:
script: |
const { ADD_LABELS, REMOVE_LABELS } = process.env;
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@ name: "pulp-cli Release"
on:
workflow_dispatch:

defaults:
run:
working-directory: "pulp-cli-gem"

jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v6"
- name: "Checkout"
uses: "actions/checkout@v6"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp-cli-gem"
- name: "Set up Python"
uses: "actions/setup-python@v6"
with:
Expand All @@ -26,6 +31,8 @@ jobs:
git config user.name pulpbot
git config user.email pulp-infra@redhat.com
- name: "Release"
permissions:
contents: "write"
run: |
uv run --with bump-my-version~=0.20.0 --with towncrier~=23.11.0 .ci/scripts/release.sh
...
23 changes: 19 additions & 4 deletions .github/workflows/release_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ name: "Create Release Branch"
on:
workflow_dispatch:

defaults:
run:
working-directory: "pulp-cli-gem"

jobs:
create-release-branch:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v6"
- name: "Checkout"
uses: "actions/checkout@v6"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
path: "pulp-cli-gem"
- name: "Set up Python"
uses: "actions/setup-python@v6"
with:
Expand All @@ -24,26 +29,36 @@ jobs:
git config user.name pulpbot
git config user.email pulp-infra@redhat.com
- name: "Create Release Branch"
permissions:
contents: "write"
run: |
uv run --with bump-my-version~=0.20.0 .ci/scripts/create_release_branch.sh
- name: "Create Pull Request"
uses: "peter-evans/create-pull-request@v8"
id: "create_pr"
permissions:
contents: "write"
pull-requests: "write"
with:
token: "${{ secrets.RELEASE_TOKEN }}"
title: "Bump dev-version"
body: ""
branch: "bump_version"
delete-branch: true
path: "pulp-cli-gem"
- name: "Mark PR automerge"
permissions:
contents: "write"
pull-requests: "write"
run: |
gh pr merge --rebase --auto "${{ steps.create_pr.outputs.pull-request-number }}"
if: "steps.create_pr.outputs.pull-request-number"
env:
GH_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
continue-on-error: true
- name: "Add Backport Label for new Branch"
uses: "actions/github-script@v8"
permissions:
issues: "write"
with:
script: |
const { NEW_BRANCH } = process.env;
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ name: "Test"
on:
workflow_call:

defaults:
run:
working-directory: "pulp-cli-gem"

env:
COLORTERM: "yes"
TERM: "xterm-256color"
Expand All @@ -28,6 +32,8 @@ jobs:
steps:
- name: "Checkout"
uses: "actions/checkout@v6"
with:
path: "pulp-cli-gem"
- name: "Download wheels"
uses: "actions/download-artifact@v8"
with:
Expand Down Expand Up @@ -64,5 +70,5 @@ jobs:
RESOLUTION=()
fi

uv run "${RESOLUTION[@]}" --isolated --with dist/pulp_glue*.whl --with dist/pulp_cli*.whl --only-group test .ci/run_container.sh make _test
uv run "${RESOLUTION[@]}" --isolated --with ../dist/pulp_glue*.whl --with ../dist/pulp_cli*.whl --only-group test .ci/run_container.sh make _test
...
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

# This file is managed by the cookiecutter templates.
# Do not edit manually
GLUE_PLUGINS=$(notdir $(wildcard pulp-glue-gem/src/pulp_glue/*))
CLI_PLUGINS=$(notdir $(wildcard src/pulpcore/cli/*))

Expand Down
Loading