1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 01:36:16 +02:00

fix openSUSE casing and use zypper patch

first update the zypper stack before installing further updates on
stable dists
This commit is contained in:
Dirk Müller 2022-10-13 10:49:06 +02:00
parent 06a313c02a
commit b4e48023c0
No known key found for this signature in database

View File

@ -30,7 +30,7 @@ jobs:
- 'fedora:36'
- 'fedora:rawhide'
# OpenSUSE
# openSUSE
# leap < 15.2 doesn't contain git-lfs which causes actions/checkout to fail
- 'opensuse/leap:15.3'
- 'opensuse/leap:15.4'
@ -50,13 +50,14 @@ jobs:
image: ${{ matrix.container }}
steps:
- name: 'Install packages (OpenSUSE)'
- name: 'Install packages (openSUSE)'
if: ${{ startsWith(matrix.container, 'opensuse/') }}
run: |
zypper --non-interactive --gpg-auto-import-keys refresh
zypper --non-interactive dist-upgrade
zypper --non-interactive install git-lfs
zypper --non-interactive install diffstat diffutils python3 python3-cryptography python3-pip python3-rpm python3-setuptools python3-urllib3
zypper -n --gpg-auto-import-keys refresh
zypper -n lr --details
grep -qi tumbleweed /etc/os-release && zypper -n dist-upgrade || zypper -n patch || zypper -n patch
zypper -n install git-lfs
zypper -n install diffstat diffutils python3 python3-cryptography python3-pip python3-rpm python3-setuptools python3-urllib3
- name: 'Install packages (Fedora/CentOS)'
if: ${{ startsWith(matrix.container, 'fedora:') || contains(matrix.container, 'centos:') }}
@ -81,12 +82,12 @@ jobs:
pip3 install -e .
python3 setup.py test
- name: 'Generate coverage reports (OpenSUSE Tumbleweed)'
- name: 'Generate coverage reports (openSUSE Tumbleweed)'
if: ${{ matrix.container == 'opensuse/tumbleweed' }}
run: |
zypper --non-interactive install python3-pytest python3-pytest-cov
zypper -n install python3-pytest python3-pytest-cov
pytest --cov=osc
- name: 'Upload coverage reports to Codecov (OpenSUSE Tumbleweed)'
- name: 'Upload coverage reports to Codecov (openSUSE Tumbleweed)'
if: ${{ matrix.container == 'opensuse/tumbleweed' }}
uses: codecov/codecov-action@v3