diff --git a/.github/workflows/gopy.yml b/.github/workflows/gopy.yml index 0f244e8..6ee9c56 100644 --- a/.github/workflows/gopy.yml +++ b/.github/workflows/gopy.yml @@ -36,8 +36,19 @@ jobs: go install golang.org/x/tools/cmd/goimports@latest go install github.com/go-python/gopy@latest - - name: Build + - name: Build python module run: | cd src/pkg/client gopy pkg -author="Photoroom" -email="team@photoroom.com" -url="" -name="datago" -version="0.99" . ls datago/* + + - name: Install python module + run: | + python3 -m pip install -e . + python3 -c "import datago" + + - name: Run the python unit tests + run: | + cd ../../.. + pip install -r requirements.txt + pytest -xv python_tests/* \ No newline at end of file diff --git a/python_tests/datago_test.py b/python_tests/datago_test.py new file mode 100644 index 0000000..b37106b --- /dev/null +++ b/python_tests/datago_test.py @@ -0,0 +1 @@ +from datago import datago diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..55b033e --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pytest \ No newline at end of file