diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml new file mode 100644 index 0000000..f8920c5 --- /dev/null +++ b/.github/workflows/python-ci.yml @@ -0,0 +1,10 @@ + - name: Create dummy poly directory for tests + run: mkdir -p polyapi/poly + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r dev_requirements.txt + + - name: Run tests + run: pytest tests/ \ No newline at end of file diff --git a/dev_requirements.txt b/dev_requirements.txt new file mode 100644 index 0000000..8f81da5 --- /dev/null +++ b/dev_requirements.txt @@ -0,0 +1,3 @@ +-r requirements.txt +mock==5.2.0 +pytest \ No newline at end of file diff --git a/tests/test_deployables.py b/tests/test_deployables.py index 2339fd6..80ec742 100644 --- a/tests/test_deployables.py +++ b/tests/test_deployables.py @@ -66,11 +66,11 @@ def foobar(foo: str, bar: Dict[str, str]) -> int: """A function that does something really import. Args: - foo (str): - bar (Dict[str, str]): + foo (str): + bar (Dict[str, str]): Returns: - int: + int: """ print("Okay then!") return 7