Skip to content

Commit

Permalink
fix: CI failing to see robyn server
Browse files Browse the repository at this point in the history
  • Loading branch information
Ido Slonimsky committed Jul 27, 2023
1 parent a765d9f commit 98b86c9
Show file tree
Hide file tree
Showing 23 changed files with 202 additions and 236 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install poetry==1.3.0
poetry export --with test --without-hashes --output requirements.txt
poetry export --with test --with dev --without-hashes --output requirements.txt
pip install -r requirements.txt
pip install -e .
- name: Add macos target
if: matrix.os == 'macos'
run: rustup target add aarch64-apple-darwin
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/python-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install poetry==1.3.0
poetry export --with test --without-hashes --output requirements.txt
poetry export --with test --with dev --without-hashes --output requirements.txt
pip install -r requirements.txt
pip install -e .
- name: Add macos target
if: matrix.os == 'macos'
run: rustup target add aarch64-apple-darwin
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ If you still need help to get started, feel free to reach out on our [community

### ⚙️ To Develop Locally

1. Install the development dependencies: `poetry install --with dev`
1. Install the development dependencies: `poetry install --with dev --with test`

2. Install the pre-commit git hooks: `pre-commit install`

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ If you still need help to get started, feel free to reach out on our [community

### ⚙️ To Develop Locally

1. Install the development dependencies: `poetry install --with dev`
1. Install the development dependencies: `poetry install --with dev --with test`

2. Install the pre-commit git hooks: `pre-commit install`

Expand Down
Empty file added integration_tests/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion integration_tests/base_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from robyn.templating import JinjaTemplate

from integration_tests.views import SyncView, AsyncView
from subroutes import sub_router
from integration_tests.subroutes import sub_router

app = Robyn(__file__)
websocket = WS(app, "/web_socket")
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import platform

import pytest
from helpers.network_helpers import get_network_host
from integration_tests.helpers.network_helpers import get_network_host


def spawn_process(command: List[str]) -> subprocess.Popen:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_authentication.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from helpers.http_methods_helpers import get
from integration_tests.helpers.http_methods_helpers import get


@pytest.mark.benchmark
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_base_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import requests

from helpers.network_helpers import get_network_host
from integration_tests.helpers.network_helpers import get_network_host


@pytest.mark.benchmark
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_basic_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import pytest

from helpers.http_methods_helpers import get
from integration_tests.helpers.http_methods_helpers import get


@pytest.mark.benchmark
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_binary_output.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from helpers.http_methods_helpers import get
from integration_tests.helpers.http_methods_helpers import get

BASE_URL = "http://127.0.0.1:8080"

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_delete_requests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from helpers.http_methods_helpers import delete
from integration_tests.helpers.http_methods_helpers import delete


@pytest.mark.benchmark
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_exception_handling.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from collections.abc import Callable
import pytest
from helpers.http_methods_helpers import get, post, put
from integration_tests.helpers.http_methods_helpers import get, post, put


@pytest.mark.benchmark
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_file_download.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from helpers.http_methods_helpers import get
from integration_tests.helpers.http_methods_helpers import get


@pytest.mark.benchmark
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_get_requests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from requests import Response

from helpers.http_methods_helpers import get
from integration_tests.helpers.http_methods_helpers import get


@pytest.mark.benchmark
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_middlewares.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from helpers.http_methods_helpers import get
from integration_tests.helpers.http_methods_helpers import get


@pytest.mark.benchmark
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_patch_requests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from helpers.http_methods_helpers import patch
from integration_tests.helpers.http_methods_helpers import patch


@pytest.mark.benchmark
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_post_requests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from helpers.http_methods_helpers import post
from integration_tests.helpers.http_methods_helpers import post


@pytest.mark.benchmark
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_put_requests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from helpers.http_methods_helpers import put
from integration_tests.helpers.http_methods_helpers import put


@pytest.mark.benchmark
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_status_code.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from helpers.http_methods_helpers import get
from integration_tests.helpers.http_methods_helpers import get


@pytest.mark.benchmark
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_subrouter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from websocket import create_connection
import pytest

from helpers.http_methods_helpers import generic_http_helper, head
from integration_tests.helpers.http_methods_helpers import generic_http_helper, head


@pytest.mark.parametrize(
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from helpers.http_methods_helpers import get, post
from integration_tests.helpers.http_methods_helpers import get, post
import pytest


Expand Down
Loading

0 comments on commit 98b86c9

Please sign in to comment.