diff --git a/.github/workflows/setup-docker-and-run-tests.yml b/.github/workflows/setup-docker-and-run-tests.yml index 23e0576..7856cf2 100644 --- a/.github/workflows/setup-docker-and-run-tests.yml +++ b/.github/workflows/setup-docker-and-run-tests.yml @@ -39,22 +39,6 @@ jobs: sleep 5 done - - name: Get Docker container IP - id: get-ip - run: | - CONTAINER_ID=$(docker ps -q --filter "name=mqtt_gateway_api") - CONTAINER_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $CONTAINER_ID) - echo "CONTAINER_IP=$CONTAINER_IP" >> $GITHUB_ENV - - - name: Save IP address - run: echo $CONTAINER_IP > container_ip.txt - - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: container-ip - path: container_ip.txt - - name: Create .env file for tests run: cp tests/.env.test.example tests/.env @@ -76,11 +60,9 @@ jobs: pip install -r backend/api/requirements.txt pip install -r backend/gateway/requirements.txt - - name: Set PYTHONPATH - run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV - - name: Run test_crud.py run: | source venv/bin/activate cd tests - python -m unittest test_crud.py \ No newline at end of file + python -m unittest test_crud.py + python -m unittest test_forwarding.py \ No newline at end of file