1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-11 16:36:14 +01:00

Replace 'setup.py test' that was removed in setuptools 72 with 'python3 -m unittest'

This commit is contained in:
Daniel Mach 2024-08-27 10:58:39 +02:00
parent 0d6f71a5cf
commit e19f1bb5d9
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ jobs:
run: |
pip3 config set global.break-system-packages 1
pip3 install -e .
python3 setup.py test
python3 -m unittest
unit:
name: "unit"
@ -109,7 +109,7 @@ jobs:
run: |
pip3 config set global.break-system-packages 1
pip3 install -e .
python3 setup.py test
python3 -m unittest
- name: 'Generate coverage reports (openSUSE Tumbleweed)'
if: ${{ contains(matrix.container, '/opensuse/tumbleweed') }}

View File

@ -192,7 +192,7 @@ install -Dm0644 oscrc.5 %{buildroot}%{_mandir}/man5/oscrc.5
%python3_fix_shebang
%check
%{use_python} setup.py test
%{use_python} -m unittest
%files
%defattr(-,root,root,-)