Skip to content

Commit 42ab41f

Browse files
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 5 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 5 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)