name: pytest

on: [push, pull_request]

jobs:
  test-ubuntu:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        pip install --upgrade pip setuptools
        pip install .
        pip install .[jax]
        pip install .[tf]
        pip install .[envs]
        pip install .[testing]
        pip install gym[atari]
        pip install -i https://test.pypi.org/simple/ \
            --pre \
            --extra-index-url https://pypi.org/simple/ \
            dm-reverb-nightly==0.0.2.dev20200527
    - name: Check types with pytype
      run: |
        pytype -j "$(grep -c ^processor /proc/cpuinfo)" acme
    - name: Test with pytest
      run: |
        pytest -n "$(grep -c ^processor /proc/cpuinfo)" acme

name: pytest

on: [push, pull_request]

jobs:
  test-ubuntu:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        pip install --upgrade pip setuptools
        pip install .
        pip install .[reverb]
        pip install .[jax]
        pip install .[tf]
        pip install .[envs]
        pip install .[testing]
        pip install gym[atari]
    - name: Check types with pytype
      run: |
        pytype -j "$(grep -c ^processor /proc/cpuinfo)" acme
    - name: Test with pytest
      run: |
        pytest -n "$(grep -c ^processor /proc/cpuinfo)" acme

Fix reverb installation in GitHub CI.
Fix reverb installation in GitHub CI.

PiperOrigin-RevId: 314929478
Change-Id: I4a71f872743995d24941999ba54003b2fb46f919
