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

Add one check job for updates on automation/requirements.txt #1102

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
19 changes: 19 additions & 0 deletions .github/workflows/requirement-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ on:
pull_request:
paths:
- 'automation/requirements.txt'
- '.github/workflows/requirement-check.yml'

env:
GIT_AUTHOR_NAME: Foreman Packaging Automation
GIT_AUTHOR_EMAIL: [email protected]
PACKAGE_TO_UPDATE: requirements.txt
PULPCORE_REQUIREMENTS: automation/requirements.txt


jobs:
rpm_list:
name: 'Check Package to Update'
needs: check_resolution
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'dependabot')
steps:
Expand Down Expand Up @@ -59,3 +62,19 @@ jobs:
fi
done < $PACKAGE_TO_UPDATE
check_resolution:
name: Check Package Installation
runs-on: ubuntu-latest
container:
image: quay.io/centos/centos:stream9
steps:
- uses: actions/checkout@v4

- name: Install dnf-plugins-core
run: dnf install 'dnf-command(config-manager)' -y && dnf config-manager --set-enabled crb

- name: Install Required Packages
run: dnf install -y gobject-introspection-devel cairo-devel gcc make cmake python3.11-devel python3.11-wheel python3.11-pip

- name: Install Pulp using requirements.txt
run: pip3.11 install -r $PULPCORE_REQUIREMENTS
Loading