1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-03 18:16:17 +01:00

Merge pull request #1171 from dirkmueller/ci_update

drop 15.2 - it is EOL
This commit is contained in:
Daniel Mach 2022-10-13 12:44:26 +02:00 committed by GitHub
commit 97a991105e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 11 deletions

View File

@ -36,7 +36,6 @@ jobs:
# OpenSUSE # OpenSUSE
# leap < 15.2 doesn't contain git-lfs which causes actions/checkout to fail # leap < 15.2 doesn't contain git-lfs which causes actions/checkout to fail
- 'opensuse/leap:15.2'
- 'opensuse/leap:15.3' - 'opensuse/leap:15.3'
- 'opensuse/leap:15.4' - 'opensuse/leap:15.4'
- 'opensuse/tumbleweed' - 'opensuse/tumbleweed'

View File

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