diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c09014bfb..59215f856 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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') }} diff --git a/contrib/osc.spec b/contrib/osc.spec index f65c6e98f..c18e30265 100644 --- a/contrib/osc.spec +++ b/contrib/osc.spec @@ -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,-)