name: Python package on: [push] jobs: build: runs-on: ubuntu-latest strategy: max-parallel: 4 matrix: python-version: [2.7, 3.5, 3.6, 3.7, pypy, pypy3] steps: - uses: actions/checkout@v1 - 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 sudo apt-get install libmemcached-dev - name: Run tox run: | pip install tox tox -- -m unit,integration --port ${{ job.services.memcached.ports[11211] }} services: memcached: image: memcached:latest ports: - 11211/udp # needed because the memcached container does not provide a healthcheck options: --health-cmd "timeout 5 bash -c 'cat < /dev/null > /dev/udp/127.0.0.1/11211'" --health-interval 10s --health-timeout 5s --health-retries 5