Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Update dependency test/pytest to v8.2.1 #1531

Update dependency test/pytest to v8.2.1

Update dependency test/pytest to v8.2.1 #1531

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: yamllint
run: |
sudo apt-get -yq update && sudo apt-get -yq install yamllint && yamllint -s $(find blue/5G -name *yaml) || true
- name: shell_test
run: |
wget "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz" && \
tar --xz -xvf "shellcheck-stable.linux.x86_64.tar.xz" && \
shellcheck() { "shellcheck-stable/shellcheck" "$@"; } && \
shellcheck --version && \
/bin/bash --version && \
for shellscript in $(find blue -type f -name "*.sh"); do /bin/bash -n "$shellscript" && shellcheck -x -e SC2069 -e SC2048 "$shellscript"; done
- name: code_check
run: |
./blue/tests/install_test.sh && \
export PYTHONPATH=$PWD/blue/5G:$PYTHONPATH && \
timeout 900 pytype . --exclude=blue/build && \
pylint --fail-under=6.0 --disable=expression-not-assigned blue
- name: unit_test_create_remove_networks
run: |
PATH=/home/runner/.local/bin:$PATH timeout 900 py.test -vvv -k "create_remove_networks" --capture=tee-sys --cov-report term-missing --cov=blue/5G/daedalus -c .coveragerc
- name: unit_test_no_build_no_create_remove_networks
run: |
PATH=/home/runner/.local/bin:$PATH timeout 900 py.test -vvv -k "not build and not create_remove_networks " --cov-append --capture=tee-sys --cov-report term-missing --cov=blue/5G/daedalus -c .coveragerc
- name: unit_test_build
run: |
PATH=/home/runner/.local/bin:$PATH timeout 7200 py.test -vvv -k "build" --cov-append --capture=tee-sys --cov-report term-missing --cov=blue/5G/daedalus -c .coveragerc && \
PATH=/home/runner/.local/bin:$PATH coverage report && \
PATH=/home/runner/.local/bin:$PATH coverage xml
- name: Upload coverage to Codecov
uses: codecov/[email protected]
if: github.repository == 'iqtlabs/daedalus'
open5gs_config_test:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: open5gs config dump
run: |
cd blue/5G/daedalus/5G/open5gs && docker build -f Dockerfile . -t open5gs && cd ../../5G/configs && \
docker run --privileged -v $(pwd)/slice.yaml:/tmp/slice.yaml -t open5gs bash -c "for i in /usr/local/bin/open5gs-* ; do echo \$i ; timeout 5s \$i -d -c /tmp/slice.yaml || true ; cat /usr/local/var/log/open5gs/*log || true ; done"
cd open5gs && docker run --privileged -v $(pwd)/smf.yaml:/tmp/smf.yaml -t open5gs bash -c "/usr/local/bin/open5gs-smfd -d -c /tmp/smf.yaml" || true
srsran_integration_tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: setup_int_tests
run: |
./blue/tests/install_test.sh && \
cd blue && sudo python3 setup.py install && cd ..
- name: srsran_enb_ue_int_test
run: |
ROOT=$(pwd) && \
./blue/tests/test_setup.sh && \
./blue/tests/test_srsran_enb_ue.sh || $ROOT/blue/tests/dump_docker.sh
ueransim_integration_tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: setup_int_tests
run: |
./blue/tests/install_test.sh && \
cd blue && sudo python3 setup.py install && cd ..
- name: ueransim_gnb_ue_int_test
run: |
ROOT=$(pwd) && \
./blue/tests/test_setup.sh && \
./blue/tests/test_ueransim_gnb_ue.sh || $ROOT/blue/tests/dump_docker.sh