8000 Fix: performance tests are very slow · cobbler/cobbler@ad4a0dd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Backport 3.3: Fix for #3816 and #3817 #3933

Backport 3.3: Fix for #3816 and #3817

Backport 3.3: Fix for #3816 and #3817 #3933

Workflow file for this run

name: Testing Cobbler
on:
push:
branches: [ main, release* ]
pull_request:
branches: [ main, release* ]
jobs:
run_tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Pull Docker Test Container
run: docker pull registry.opensuse.org/systemsmanagement/cobbler/github-ci/containers/cobbler-test-github:release33
- name: Run previously built Docker Container
run: docker run --privileged -t -d -v $PWD:/code --name cobbler registry.opensuse.org/systemsmanagement/cobbler/github-ci/containers/cobbler-test-github:release33
- name: Trust the git repository inside the container
shell: 'script -q -e -c "bash {0}"'
run: |
docker exec -u 0 -it cobbler bash -c "git config --global --add safe.directory /code"
- 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 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-skip"
- name: Stop and remove the container
run: docker stop cobbler && docker rm cobbler
0