diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c846bbc2..9003c6792 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,8 +40,8 @@ jobs: - name: Run tests run: | - python3 -m pip install --upgrade pip pytest psycopg furl cryptography - python3 -m pytest -vv test_action.py + python3 -m pip install -r tests/requirements.txt + python3 -m pytest -vv tests/test_action.py env: CONNECTION_URI: ${{ steps.postgres.outputs.connection-uri }} SERVICE_NAME: ${{ steps.postgres.outputs.service-name }} @@ -88,8 +88,8 @@ jobs: - name: Run tests run: | - python3 -m pip install --upgrade pip pytest psycopg furl cryptography - python3 -m pytest -vv test_action.py + python3 -m pip install -r tests/requirements.txt + python3 -m pytest -vv tests/test_action.py env: CONNECTION_URI: ${{ steps.postgres.outputs.connection-uri }} SERVICE_NAME: ${{ steps.postgres.outputs.service-name }} diff --git a/tests/requirements.txt b/tests/requirements.txt new file mode 100644 index 000000000..815ba63db --- /dev/null +++ b/tests/requirements.txt @@ -0,0 +1,4 @@ +cryptography +furl +psycopg +pytest diff --git a/test_action.py b/tests/test_action.py similarity index 100% rename from test_action.py rename to tests/test_action.py