Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 42ab41f

Browse files
authoredOct 4, 2023
Develop python 3.10 (#5981)
* Deprecated python 3.8.x and 3.9.x. * Updated colab gha test to 3.10.12 * Updated colabs for Sentis and python 3.10. * Test fix. * Minor update to colabs.
1 parent e6a7c0b commit 42ab41f

36 files changed

+565
-183
lines changed
 

‎.github/workflows/colab.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Set up Python
3232
uses: actions/setup-python@v2
3333
with:
34-
python-version: 3.9.x
34+
python-version: 3.10.12
3535
- uses: actions/setup-dotnet@v1
3636
with:
3737
dotnet-version: '6.0.x'

‎.github/workflows/nightly.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,8 @@ jobs:
3737
# If one test in the matrix fails we still want to run the others.
3838
fail-fast: false
3939
matrix:
40-
python-version: [3.8.x, 3.9.x, 3.10.x]
40+
python-version: [3.10.x]
4141
include:
42-
- python-version: 3.8.x
43-
pip_constraints: test_constraints_min_version.txt
44-
- python-version: 3.9.x
45-
pip_constraints: test_constraints_mid_version.txt
4642
- python-version: 3.10.x
4743
pip_constraints: test_constraints_max_version.txt
4844
steps:

‎.github/workflows/pre-commit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v2
1717
- uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.8.x
19+
python-version: 3.10.x
2020
- uses: actions/setup-ruby@v1
2121
env:
2222
ImageOS: ubuntu20

‎.github/workflows/publish_docs.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
uses: actions/checkout@v2
1313
with:
1414
token: ${{ secrets.PUBLIC_GH_TOKEN }}
15-
- name: Setup Python 3.8
15+
- name: Setup Python 3.10
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: 3.8
18+
python-version: 3.10
1919
- name: Publish docs
2020
run: |
2121
pip install mkdocs

‎.github/workflows/publish_pypi.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@main
21-
- name: Set up Python 3.8
21+
- name: Set up Python 3.10
2222
uses: actions/setup-python@v2
2323
with:
24-
python-version: 3.8
24+
python-version: 3.10
2525
- name: Install dependencies
2626
run: pip install setuptools wheel twine --user
2727
- name: verify git tag vs. version

‎.github/workflows/publish_pypi_python_api.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v2
21-
- name: Set up Python 3.8
21+
- name: Set up Python 3.10
2222
uses: actions/setup-python@v2
2323
with:
24-
python-version: 3.8
24+
python-version: 3.10
2525
- name: Install dependencies
2626
run: pip install setuptools wheel twine --user
2727
- name: verify git tag vs. version

‎.github/workflows/pytest.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,8 @@ jobs:
3737
# If one test in the matrix fails we still want to run the others.
3838
fail-fast: false
3939
matrix:
40-
python-version: [3.8.x, 3.9.x, 3.10.12]
40+
python-version: [3.10.12]
4141
include:
42-
- python-version: 3.8.x
43-
pip_constraints: test_constraints_min_version.txt
44-
- python-version: 3.9.x
45-
pip_constraints: test_constraints_mid_version.txt
4642
- python-version: 3.10.12
4743
pip_constraints: test_constraints_max_version.txt
4844
steps:

‎.yamato/com.unity.ml-agents-coverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test_coverage_{{ package.name }}_{{ platform.name }}_{{ editor.version }}:
1515
- npm install upm-ci-utils@1.27.0 -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
1616
- upm-ci project test -u {{ editor.version }} --type project-tests --project-path {{ editor.testProject }} --package-filter {{ package.name }} {{ coverageOptions }} --extra-utr-arg "reruncount=2"
1717
- |
18-
conda activate python3.8
18+
conda activate python3.10
1919
python3 ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ package.minCoveragePct }}
2020
artifacts:
2121
logs:

‎.yamato/com.unity.ml-agents-pack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pack:
77
commands:
88
- |
99
eval "$($HOME/anaconda/bin/conda shell.bash hook)"
10-
conda activate python3.8
10+
conda activate python3.10
1111
python3 -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
1212
unity-downloader-cli -u 2022.3 -c editor --wait --fast
1313
./.Editor/Unity -projectPath Project -batchMode -executeMethod Unity.MLAgents.SampleExporter.ExportCuratedSamples -logFile -

‎.yamato/com.unity.ml-agents-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ test_{{ package.name }}_{{ platform.name }}_trunk:
126126
commands:
127127
- |
128128
{% if platform.name == "linux" %}
129-
conda activate python3.8
129+
conda activate python3.10
130130
{% endif %}
131131
python -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
132132
unity-downloader-cli -u trunk -c editor --wait --fast

‎.yamato/compressed-sensor-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test_compressed_obs_{{ editor.version }}:
1212
commands:
1313
- |
1414
eval "$($HOME/anaconda/bin/conda shell.bash hook)"
15-
conda activate python3.8
15+
conda activate python3.10
1616
python -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1717
python -u -m ml-agents.tests.yamato.setup_venv
1818
python ml-agents/tests/yamato/scripts/run_compressed_sensor.py --env=artifacts/testPlayer-TestGridCompressed

‎.yamato/gym-interface-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test_gym_interface_{{ editor.version }}:
1212
commands:
1313
- |
1414
eval "$($HOME/anaconda/bin/conda shell.bash hook)"
15-
conda activate python3.8
15+
conda activate python3.10
1616
python -m pip install wheel --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1717
python -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1818
python -u -m ml-agents.tests.yamato.setup_venv

‎.yamato/protobuf-generation-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test_linux_protobuf_generation:
1111
- |
1212
sudo apt-get update && sudo apt-get install -y nuget
1313
eval "$($HOME/anaconda/bin/conda shell.bash hook)"
14-
conda activate python3.8
14+
conda activate python3.10
1515
nuget install Grpc.Tools -Version $GRPC_VERSION -OutputDirectory protobuf-definitions/
1616
python3 -m pip install --upgrade pip --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1717
python3 -m pip install grpcio==1.28.1 grpcio-tools==1.13.0 protobuf==3.11.3 six==1.14.0 mypy-protobuf==1.16.0 --progress-bar=off --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple

‎.yamato/pytest-gpu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pytest_gpu:
77
commands:
88
- |
99
eval "$($HOME/anaconda/bin/conda shell.bash hook)"
10-
conda activate python3.8
10+
conda activate python3.10
1111
python3 -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1212
python3 -u -m ml-agents.tests.yamato.setup_venv
1313
python3 -m pip install --progress-bar=off -r test_requirements.txt --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple

‎.yamato/python-ll-api-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test_linux_ll_api_{{ editor.version }}:
1212
commands:
1313
- |
1414
eval "$($HOME/anaconda/bin/conda shell.bash hook)"
15-
conda activate python3.8
15+
conda activate python3.10
1616
python -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1717
python -u -m ml-agents.tests.yamato.setup_venv
1818
python ml-agents/tests/yamato/scripts/run_llapi.py

‎.yamato/standalone-build-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test_linux_standalone_{{ editor.version }}:
1212
commands:
1313
- |
1414
eval "$($HOME/anaconda/bin/conda shell.bash hook)"
15-
conda activate python3.8
15+
conda activate python3.10
1616
python3 -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1717
python3 -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
1818
unity-downloader-cli -u {{ editor.version }} -c editor --wait --fast

‎.yamato/standalone-build-webgl-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test_webgl_standalone_{{ editor_version }}:
1010
commands:
1111
- |
1212
eval "$($HOME/anaconda/bin/conda shell.bash hook)"
13-
conda activate python3.8
13+
conda activate python3.10
1414
python -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1515
python -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
1616
unity-downloader-cli -u {{ editor_version }} -c editor -c WebGL --wait --fast

‎.yamato/training-int-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test_linux_training_int_{{ editor.version }}:
1212
commands:
1313
- |
1414
eval "$($HOME/anaconda/bin/conda shell.bash hook)"
15-
conda activate python3.8
15+
conda activate python3.10
1616
python -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1717
python -u -m ml-agents.tests.yamato.training_int_tests
1818
dependencies:

0 commit comments

Comments
 (0)