Skip to content

Compatibility fixes for tftpboot directory setup #270

Compatibility fixes for tftpboot directory setup

Compatibility fixes for tftpboot directory setup #270

name: Performance testing
on:
push:
branches: [ suma/4.3, suma/head, uyuni/master ]
pull_request:
branches: [ suma/4.3, suma/head, uyuni/master ]
jobs:
run_performance_tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
- name: Pull Docker Test Container
run: docker pull registry.opensuse.org/systemsmanagement/cobbler/github-ci/containers/cobbler-test-github:uyuni-master
- name: Run previously built Docker Container
run: docker run --cap-add=NET_ADMIN -t -d -v $PWD:/code --name cobbler registry.opensuse.org/systemsmanagement/cobbler/github-ci/containers/cobbler-test-github:uyuni-master
- name: Setup Cobbler in the Container
shell: 'script -q -e -c "bash {0}"'
run: |
docker exec -u 0 -it cobbler bash -c "./docker/develop/scripts/setup-supervisor.sh"
- name: Run the Performance Tests inside the Docker Container
shell: 'script -q -e -c "bash {0}"'
run: |
docker exec -u 0 -it cobbler bash -c "pytest --cov=./cobbler --benchmark-only --benchmark-autosave tests/performance"
- name: Stop and remove the container
run: docker stop cobbler && docker rm cobbler