Skip to content

Commit

Permalink
Unit-buildbot: added privileged tests job
Browse files Browse the repository at this point in the history
  • Loading branch information
thresheek committed Jul 3, 2024
1 parent 28e4524 commit 57fb4e8
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/unit-buildbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
os: [ alpine-3.19, amazonlinux-2, amazonlinux-2023, debian-11, debian-12, fedora-39, freebsd-14, rhel-8, rhel-9, ubuntu-20.04, ubuntu-22.04, ubuntu-23.10 ]
arch: [ amd64, arm64 ]
njs: [ '' ]
user: [ '' ]
exclude:
- os: fedora-39 # we don't provide Fedora arm64 runners
arch: arm64
Expand All @@ -50,6 +51,10 @@ jobs:
- os: ubuntu-22.04
arch: amd64
njs: HEAD
include:
- os: ubuntu-22.04
arch: amd64
user: privileged
fail-fast: false

steps:
Expand Down Expand Up @@ -254,13 +259,24 @@ jobs:
sudo python3 -m pip install --upgrade pip
python3 -m pip install -r /tmp/unit-requirements.txt
- name: Build and run tests
- name: Build tests
run: |
$MAKE_UTILITY -j$(nproc) tests
- name: Run tests
if: ${{ matrix.user == '' }}
run: |
./build/tests
ulimit -c unlimited
python3 -m pytest test
- name: Run privileged tests
if: ${{ matrix.user == 'privileged' }}
run: |
sudo ./build/tests
ulimit -c unlimited
sudo python3 -m pytest test
print:
runs-on: [ debian-12-amd64 ]
needs: check-if-allowed
Expand Down

0 comments on commit 57fb4e8

Please sign in to comment.