Fixed metrics parsing, revoked changes in configuration tool #19
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: Integration Tests | |
on: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
integration-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the Docker image | |
run: docker-compose build | |
- name: Run Integration Tests with Retry | |
run: | | |
docker-compose up -d | |
for attempt in {1..3} | |
do | |
echo "Attempt $attempt from 3" | |
docker-compose exec rt-5gms-m1-management-ui sh -c "cd tests && pytest integration_test.py" && break | |
echo "Test failed, next attempt..." | |
sleep 5 | |
done | |
if [ "$attempt" -eq 4 ]; then | |
echo "All tests definitively failed." | |
exit 1 | |
fi | |
docker-compose down |