Skip to content

Commit

Permalink
fix stable branch ci (#641)
Browse files Browse the repository at this point in the history
* Install Python 3.8 modules

As upstream CS8 engine container already uses ansible-core-2.13 with
Python 3.9 on EL8, we need to install Python 3.8 support manually

Signed-off-by: Martin Perina <[email protected]>

* Remove CS9 build

As ovirt-ansible-collection-2.y is a stable branch for EL 8.6 backports,
we don't need to run CS9 based builds there

Signed-off-by: Martin Perina <[email protected]>

Signed-off-by: Martin Perina <[email protected]>
  • Loading branch information
mwperina authored Nov 28, 2022
1 parent f12248b commit 92c095c
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,14 @@ jobs:
- name: centos-stream-8
shortcut: cs8
container-name: el8stream
- name: centos-stream-9
shortcut: cs9
container-name: el9stream
name: ${{ matrix.name }}
container:
image: quay.io/ovirt/buildcontainer:${{ matrix.container-name }}
steps:
- name: Install python3.8 modules
if: ${{ matrix.shortcut == 'cs8' }}
run: pip-3.8 install pycodestyle pylint voluptuous yamllint "rstcheck<3.5.0" antsibull-changelog "rich<11.0.0" "ansible-lint>=6.0.0,<7.0.0" cryptography

- name: Install ansible-core 2.13 on el9stream
# Remove after ansible-core 2.13 is available on el9stream as RPM.
if: ${{ matrix.shortcut == 'cs9' }}
run: pip-3 install ansible

- name: Install python3.9 modules
if: ${{ matrix.shortcut == 'cs9' }}
run: pip-3 install pycodestyle pylint voluptuous yamllint rstcheck antsibull-changelog rich "ansible-lint>=6.0.0,<7.0.0" cryptography
run: |
dnf install -y python38-devel python38-pip
pip-3.8 install pycodestyle pylint voluptuous yamllint "rstcheck<3.5.0" antsibull-changelog "rich<11.0.0" "ansible-lint>=6.0.0,<7.0.0" cryptography
- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit 92c095c

Please sign in to comment.