Skip to content

Commit

Permalink
Experiment: Update CI
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
mdellweg committed Nov 27, 2023
1 parent ddce17a commit da3b448
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 66 deletions.
16 changes: 0 additions & 16 deletions .ci/scripts/tweet.py

This file was deleted.

2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-277-gb3d1884
2021.08.26-278-g22c5b00-dirty
19 changes: 9 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
test:
needs: build
uses: "./.github/workflows/test.yml"

deprecations:
defaults:
run:
Expand All @@ -62,16 +63,14 @@ jobs:
steps:
- name: Fail on deprecations
run: |
test -z "${{ needs.test.outputs.deprecations-pulp }}"
test -z "${{ needs.test.outputs.deprecations-azure }}"
test -z "${{ needs.test.outputs.deprecations-s3 }}"
test -z "${{ needs.test.outputs.deprecations-lowerbounds }}"
test -z "${{ needs.test.test.outputs.deprecations-pulp }}"
test -z "${{ needs.test.test.outputs.deprecations-azure }}"
test -z "${{ needs.test.test.outputs.deprecations-s3 }}"
test -z "${{ needs.test.test.outputs.deprecations-lowerbounds }}"
- name: Print deprecations
if: failure()
run: |
echo "${{ needs.test.outputs.deprecations-pulp }}" | base64 -d
echo "${{ needs.test.outputs.deprecations-azure }}" | base64 -d
echo "${{ needs.test.outputs.deprecations-s3 }}" | base64 -d
echo "${{ needs.test.outputs.deprecations-lowerbounds }}" | base64 -d
echo "${{ needs.test.test.outputs.deprecations-pulp }}" | base64 -d
echo "${{ needs.test.test.outputs.deprecations-azure }}" | base64 -d
echo "${{ needs.test.test.outputs.deprecations-s3 }}" | base64 -d
echo "${{ needs.test.test.outputs.deprecations-lowerbounds }}" | base64 -d
16 changes: 8 additions & 8 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
language: [ 'python' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
2 changes: 1 addition & 1 deletion .github/workflows/kanban.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
runs-on: ubuntu-latest
name: Find issues linked to a PR
outputs:
linked-issues: ${{ steps.linked-issues.outputs.issues }}
linked-issues: ${{ steps.linked-issues.outputs.issues }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
- name: Install requirements
run: pip3 install -r lint_requirements.txt

- name: Lint workflow files
run: |
yamllint -s -d '{extends: relaxed, rules: {line-length: disable}}' .github/workflows
# run black separately from flake8 to get a diff
- name: Run black
run: |
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,6 @@ jobs:
fetch-depth: 1
path: "pulp_gem"

- uses: actions/checkout@v4
with:
fetch-depth: 1
repository: "pulp/pulp-openapi-generator"
path: "pulp-openapi-generator"

- uses: actions/download-artifact@v3
with:
name: "plugin_package"
Expand All @@ -91,11 +85,16 @@ jobs:
with:
python-version: "3.8"

- name: Install python dependencies
run: |
echo ::group::PYDEPS
pip install requests
echo ::endgroup::
- name: Set environment variables
run: |
echo "TEST=${{ matrix.env.TEST }}" >> $GITHUB_ENV
- name: Download built docs
uses: actions/download-artifact@v3
with:
Expand All @@ -117,7 +116,6 @@ jobs:
run: |
tar -xvf docs.tar -C ./docs
.github/workflows/scripts/publish_docs.sh nightly ${GITHUB_REF##*/}
- name: Logs
if: always()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ jobs:
env:
TAG_NAME: ${{ inputs.release }}
with:
const { TAG_NAME } = process.env;

script: |
const { TAG_NAME } = process.env;
await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/scripts/create_release_from_tag.sh

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/update-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@


---
name: Gem Update Labels
name: "Gem Update Labels"
on:
push:
branches:
- main
- "main"
paths:
- 'template_config.yml'
- "template_config.yml"

jobs:
update_backport_labels:
Expand All @@ -31,8 +31,8 @@ jobs:
echo ::group::PYDEPS
pip install requests pyyaml
echo ::endgroup::
- uses: actions/checkout@v3
- name: Update labels
- uses: "actions/checkout@v3"
- name: "Update labels"
run: |
python3 .github/workflows/scripts/update_backport_labels.py
env:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/update_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:
# * is a special character in YAML so you have to quote this string
# runs at 2:30 UTC every Sunday
- cron: '30 2 * * 0'

workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion lint_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ black
check-manifest
flake8
flake8-black

yamllint
2 changes: 0 additions & 2 deletions template_config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# This config represents the latest values used when running the plugin-template. Any settings that
# were not present before running plugin-template have been added with their default values.

# generated with [email protected]

additional_repos: []
api_root: /pulp/
black: true
Expand Down

0 comments on commit da3b448

Please sign in to comment.