Skip to content

Commit

Permalink
Add one check job for updates on automation/requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Odilhao committed Aug 2, 2024
1 parent 6254432 commit e9efd37
Showing 1 changed file with 19 additions and 0 deletions.
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

0 comments on commit e9efd37

Please sign in to comment.