diff --git a/.github/workflows/plugin.yml b/.github/workflows/plugin.yml index b03a058..52cbcf8 100644 --- a/.github/workflows/plugin.yml +++ b/.github/workflows/plugin.yml @@ -37,6 +37,15 @@ jobs: ports: - 3306/tcp options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + redis: + image: redis + ports: + - 6379/tcp + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 strategy: matrix: @@ -83,6 +92,8 @@ jobs: MYSQL_HOST: 127.0.0.1 MYSQL_PORT: ${{ job.services.mysql.ports[3306] }} # get randomly assigned published port MYSQL_USER: root + REDIS_HOST: localhost + REDIS_PORT: ${{ job.services.redis.ports[6379] }} - name: Test with pytest and coverage if: ${{ matrix.python-version == '3.10' && matrix.database == 'postgres' }} @@ -98,6 +109,8 @@ jobs: MYSQL_HOST: 127.0.0.1 MYSQL_PORT: ${{ job.services.mysql.ports[3306] }} # get randomly assigned published port MYSQL_USER: root + REDIS_HOST: localhost + REDIS_PORT: ${{ job.services.redis.ports[6379] }} - name: Upload coverage result if: ${{ matrix.python-version == '3.10' && matrix.database == 'postgres'}} uses: actions/upload-artifact@v3