Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pulpbot authored and mdellweg committed Nov 27, 2023
1 parent f50b597 commit 863fa6d
Show file tree
Hide file tree
Showing 16 changed files with 296 additions and 482 deletions.
2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-265-gbdd41dd
2021.08.26-276-g45ce134
21 changes: 13 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,23 @@
# For more info visit https://github.com/pulp/plugin_template

---
name: Build
name: "Build"
on:
workflow_call:

defaults:
run:
working-directory: "pulp_file"

jobs:
build:
runs-on: ubuntu-latest
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
path: "pulp_file"
- uses: actions/setup-python@v4
with:
python-version: "3.8"
Expand All @@ -26,12 +31,12 @@ jobs:
echo ::group::PYDEPS
pip install packaging wheel
echo ::endgroup::
- name: Build package
run: python3 setup.py sdist bdist_wheel --python-tag py3
- name: "Build package"
run: "python3 setup.py sdist bdist_wheel --python-tag py3"
- name: 'Upload Package whl'
uses: actions/upload-artifact@v3
uses: "actions/upload-artifact@v3"
with:
name: plugin_package
path: dist/
if-no-files-found: error
name: "plugin_package"
path: "pulp_file/dist/"
if-no-files-found: "error"
retention-days: 5
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ concurrency:
group: ${{ github.ref_name }}-${{ github.workflow }}
cancel-in-progress: true

defaults:
run:
working-directory: "pulp_file"

jobs:

ready-to-ship:
Expand All @@ -21,6 +25,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
path: "pulp_file"
- uses: actions/setup-python@v4
with:
python-version: "3.8"
Expand All @@ -31,10 +36,6 @@ jobs:
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
GITHUB_PULL_REQUEST: ${{ github.event.number }}
GITHUB_PULL_REQUEST_BODY: ${{ github.event.pull_request.body }}
GITHUB_BRANCH: ${{ github.head_ref }}
GITHUB_REPO_SLUG: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ github.event.pull_request.commits_url }}
run: sh .github/workflows/scripts/check_commit.sh
Expand All @@ -52,6 +53,9 @@ jobs:
needs: build
uses: "./.github/workflows/test.yml"
deprecations:
defaults:
run:
working-directory: "."
runs-on: ubuntu-latest
if: github.base_ref == 'main'
needs: test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
path: pulp_file
path: "pulp_file"

- uses: actions/setup-python@v4
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
# For more info visit https://github.com/pulp/plugin_template

---
name: Lint
name: "Lint"
on:
workflow_call:

defaults:
run:
working-directory: "pulp_file"

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -18,9 +22,12 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 1
path: "pulp_file"

- uses: actions/setup-python@v4
with:
python-version: "3.8"

# lint_requirements contains tools needed for flake8, etc.
- name: Install requirements
run: pip3 install -r lint_requirements.txt
Expand Down
Loading

0 comments on commit 863fa6d

Please sign in to comment.