packagekit: Fix crash on unexpected uname -r
format
#13155
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: unit-tests | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-22.04 | |
permissions: {} | |
container: | |
image: quay.io/cockpit/tasks:latest | |
options: --user 1001 | |
strategy: | |
matrix: | |
target: | |
- check-memory | |
- distcheck | |
# this runs static code checks, unlike distcheck | |
- check | |
- pytest-cov | |
fail-fast: false | |
timeout-minutes: 60 | |
env: | |
FORCE_COLOR: 1 | |
TEST_BROWSER: firefox | |
CFLAGS: '-O2' | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
# need this to also fetch tags | |
fetch-depth: 0 | |
submodules: true | |
- name: Run unit test | |
timeout-minutes: 30 | |
run: | | |
./autogen.sh | |
make -j$(nproc) '${{ matrix.target }}' |