Skip to content

Commit

Permalink
GHA: Install python311 packages on Leap
Browse files Browse the repository at this point in the history
  • Loading branch information
dmach committed Dec 19, 2023
1 parent 93ff7eb commit 802fb92
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,23 @@ jobs:
image: ${{ matrix.container }}

steps:
- name: 'Set ENV variables (openSUSE Tumbleweed)'
if: ${{ contains(matrix.container, '/opensuse/tumbleweed') }}
env:
PYTHON3_PKG=python3
PYTHON3=python3

- name: 'Set ENV variables (openSUSE Leap)'
if: ${{ contains(matrix.container, '/opensuse/leap') }}
env:
PYTHON3_PKG=python311
PYTHON3=python3.11

- name: 'Install packages'
run: |
zypper -n modifyrepo --disable repo-openh264 || :
zypper -n --gpg-auto-import-keys refresh
zypper -n install python3 python3-pip python3-pydantic python3-pytest python3-rpm python3-setuptools python3-solv python3-PyYAML
zypper -n install ${PYTHON3_PKG} ${PYTHON3_PKG}-pip ${PYTHON3_PKG}-pydantic ${PYTHON3_PKG}-pytest ${PYTHON3_PKG}-rpm ${PYTHON3_PKG}-setuptools ${PYTHON3_PKG}-solv ${PYTHON3_PKG}-PyYAML
- uses: actions/checkout@v4

Expand Down

0 comments on commit 802fb92

Please sign in to comment.