|
|
|
|
|
|
TEST_ENFORCE_BUFFER_KEY_TYPES: 1 |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
python-version: [3.6.x, 3.7.x, 3.8.x] |
|
|
|
python-version: [3.6.x, 3.7.x, 3.8.x, 3.9.x] |
|
|
|
include: |
|
|
|
- python-version: 3.6.x |
|
|
|
pip_constraints: test_constraints_min_version.txt |
|
|
|
- python-version: 3.7.x |
|
|
|
pip_constraints: test_constraints_mid_version.txt |
|
|
|
- python-version: 3.8.x |
|
|
|
pip_constraints: test_constraints_mid_version.txt |
|
|
|
- python-version: 3.9.x |
|
|
|
pip_constraints: test_constraints_max_version.txt |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v2 |
|
|
|
- name: Set up Python |
|
|
|
|
|
|
# This path is specific to Ubuntu |
|
|
|
path: ~/.cache/pip |
|
|
|
# Look to see if there is a cache hit for the corresponding requirements file |
|
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('ml-agents/setup.py', 'ml-agents-envs/setup.py', 'gym-unity/setup.py', 'test_requirements.txt') }} |
|
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('ml-agents/setup.py', 'ml-agents-envs/setup.py', 'gym-unity/setup.py', 'test_requirements.txt', matrix.pip_constraints) }} |
|
|
|
restore-keys: | |
|
|
|
${{ runner.os }}-pip- |
|
|
|
${{ runner.os }}- |
|
|
|
|
|
|
run: | |
|
|
|
python -m pip install --upgrade pip |
|
|
|
python -m pip install --upgrade setuptools |
|
|
|
python -m pip install --progress-bar=off -e ./ml-agents-envs |
|
|
|
python -m pip install --progress-bar=off -e ./ml-agents |
|
|
|
python -m pip install --progress-bar=off -r test_requirements.txt |
|
|
|
python -m pip install --progress-bar=off -e ./gym-unity |
|
|
|
python -m pip install --progress-bar=off -e ./ml-agents-plugin-examples |
|
|
|
python -m pip install --progress-bar=off -e ./ml-agents-envs -c ${{ matrix.pip_constraints }} |
|
|
|
python -m pip install --progress-bar=off -e ./ml-agents -c ${{ matrix.pip_constraints }} |
|
|
|
python -m pip install --progress-bar=off -r test_requirements.txt -c ${{ matrix.pip_constraints }} |
|
|
|
python -m pip install --progress-bar=off -e ./gym-unity -c ${{ matrix.pip_constraints }} |
|
|
|
python -m pip install --progress-bar=off -e ./ml-agents-plugin-examples -c ${{ matrix.pip_constraints }} |
|
|
|
- name: Save python dependencies |
|
|
|
run: | |
|
|
|
pip freeze > pip_versions-${{ matrix.python-version }}.txt |
|
|
|