From 108be3ee3cd02bbfefdd1b52f0598b0b81150987 Mon Sep 17 00:00:00 2001 From: Artur Barseghyan Date: Wed, 23 Jun 2021 01:32:30 +0200 Subject: [PATCH] Up --- .github/workflows/test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 869d3d2d..56520084 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,21 @@ on: [push, pull_request] jobs: test: + # Service containers to run with `container-job` + services: + # Label used to access the service container + postgres: + # Docker Hub image + image: postgres + # Provide the password for postgres + env: + POSTGRES_PASSWORD: postgres + # Set health checks to wait until postgres has started + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 runs-on: ubuntu-latest strategy: @@ -68,6 +83,10 @@ jobs: uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} + - uses: nanasess/setup-chromedriver@master + with: + # Optional: do not specify to match Chrome's version + chromedriver-version: '88.0.4324.96' - name: Install Dependencies run: | python -m pip install --upgrade pip @@ -76,6 +95,7 @@ jobs: pip install -r examples/requirements/${{ matrix.requirements }}.txt pip-compile examples/requirements/test.in pip install -r examples/requirements/test.txt + psql -c 'create database fobi_test;' -U postgres - name: Run Tests run: tox -e ${{ matrix.tox_env }} - name: Coveralls