mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-03 10:06:17 +01:00
Merge pull request #1171 from dirkmueller/ci_update
drop 15.2 - it is EOL
This commit is contained in:
commit
97a991105e
1
.github/workflows/build-install.yaml
vendored
1
.github/workflows/build-install.yaml
vendored
@ -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'
|
||||||
|
20
.github/workflows/unittests.yaml
vendored
20
.github/workflows/unittests.yaml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user