diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d89a949..2bd1ff9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,17 +25,22 @@ jobs: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: ci_db_test - TEST_DATABASE_URL: postgresql://postgres:postgres@localhost/ci_db_test - TEST_DATABASE_ASYNC_URL: postgresql+asyncpg://postgres:postgres@localhost/ci_db_test ports: - 5432:5432 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - - run: sudo apt-get update - - run: printenv - - run: ls - - run: sudo pip install setuptools-rust - - run: sudo python -m pip install --upgrade pip - - run: sudo pip install --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org -r requirements.txt - - run: coverage run -m pytest ./tests/test_implementations - - run: coveralls + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Test with unittest + env: + TEST_DATABASE_URL: postgresql://postgres:postgres@localhost/ci_db_test + TEST_DATABASE_ASYNC_URL: postgresql+asyncpg://postgres:postgres@localhost/ci_db_test + run: | + python -m unittest discover -s ./tests/test_implementations \ No newline at end of file