Skip to content

Commit f9b7399

Browse files
miguelalonsojrtaozhuo
authored andcommitted
Dev bump min ver (#74)
* Bumped minimum version of Unity. * Bumped minimum version of python and pytorch. fixed issues with deprecation warnings for x.T (tensor transpose). * Fixed np.bool deprecation warning. This is a port of an external PR: #5795. (#71) * Updated submodule. * Bumped max ver of python. * Bumped to 2021.3 in yamato tests. * Fixed version issue with torch in test constraints. * update sysroot version * update toolchain version Co-authored-by: zhuo <[email protected]>
1 parent 02f5621 commit f9b7399

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+316
-246
lines changed

.github/workflows/nightly.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ jobs:
4343
# If one test in the matrix fails we still want to run the others.
4444
fail-fast: false
4545
matrix:
46-
python-version: [3.7.x, 3.8.x, 3.9.x]
46+
python-version: [3.8.x, 3.9.x, 3.10.x]
4747
include:
48-
- python-version: 3.7.x
49-
pip_constraints: test_constraints_min_version.txt
5048
- python-version: 3.8.x
51-
pip_constraints: test_constraints_mid_version.txt
49+
pip_constraints: test_constraints_min_version.txt
5250
- python-version: 3.9.x
51+
pip_constraints: test_constraints_mid_version.txt
52+
- python-version: 3.10.x
5353
pip_constraints: test_constraints_max_version.txt
5454
steps:
5555
- uses: actions/checkout@v2

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: pre-commit
33
on:
44
pull_request:
55
push:
6-
branches:
6+
branches:
77
- main
88
- develop
99
- 'release/**'
@@ -20,7 +20,7 @@ jobs:
2020
submodules: recursive
2121
- uses: actions/setup-python@v2
2222
with:
23-
python-version: 3.7.x
23+
python-version: 3.8.x
2424
- uses: actions/setup-ruby@v1
2525
env:
2626
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.7
15+
- name: Setup Python 3.8
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: 3.7
18+
python-version: 3.8
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
@@ -20,10 +20,10 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@main
23-
- name: Set up Python 3.7
23+
- name: Set up Python 3.8
2424
uses: actions/setup-python@v2
2525
with:
26-
python-version: 3.7
26+
python-version: 3.8
2727
- name: Install dependencies
2828
run: pip install setuptools wheel twine --user
2929
- 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
@@ -20,10 +20,10 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v2
23-
- name: Set up Python 3.7
23+
- name: Set up Python 3.8
2424
uses: actions/setup-python@v2
2525
with:
26-
python-version: 3.7
26+
python-version: 3.8
2727
- name: Install dependencies
2828
run: pip install setuptools wheel twine --user
2929
- name: verify git tag vs. version

.github/workflows/pytest.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- 'test_requirements.txt'
1010
- '.github/workflows/pytest.yml'
1111
push:
12-
branches:
12+
branches:
1313
- main
1414
- develop
1515
- 'release/**'
@@ -39,13 +39,13 @@ jobs:
3939
# If one test in the matrix fails we still want to run the others.
4040
fail-fast: false
4141
matrix:
42-
python-version: [3.7.x, 3.8.x, 3.9.x]
42+
python-version: [3.8.x, 3.9.x, 3.10.x]
4343
include:
44-
- python-version: 3.7.x
45-
pip_constraints: test_constraints_min_version.txt
4644
- python-version: 3.8.x
47-
pip_constraints: test_constraints_mid_version.txt
45+
pip_constraints: test_constraints_min_version.txt
4846
- python-version: 3.9.x
47+
pip_constraints: test_constraints_mid_version.txt
48+
- python-version: 3.10.x
4949
pip_constraints: test_constraints_max_version.txt
5050
steps:
5151
- uses: actions/checkout@v2

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test_coverage_{{ package.name }}_{{ platform.name }}_{{ editor.version }}:
1616
- npm install [email protected] -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
1717
- upm-ci project test -u {{ editor.version }} --type project-tests --project-path {{ editor.testProject }} --package-filter {{ package.name }} {{ coverageOptions }} --extra-utr-arg "reruncount=2"
1818
- |
19-
conda activate python3.7
19+
conda activate python3.8
2020
python3 ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ package.minCoveragePct }}
2121
artifacts:
2222
logs:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ pack:
88
- git submodule update --init --recursive
99
- |
1010
eval "$($HOME/anaconda/bin/conda shell.bash hook)"
11-
conda activate python3.7
11+
conda activate python3.8
1212
python3 -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
13-
unity-downloader-cli -u 2020.3 -c editor --wait --fast
13+
unity-downloader-cli -u 2021.3 -c editor --wait --fast
1414
./.Editor/Unity -projectPath Project -batchMode -executeMethod Unity.MLAgents.SampleExporter.ExportCuratedSamples -logFile -
1515
npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
1616
upm-ci project pack --project-path Project

.yamato/com.unity.ml-agents-performance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
test_editors:
2-
- version: 2020.3
3-
- version: 2021.2
2+
- version: 2021.3
3+
- version: 2022.1
44
---
55
{% for editor in test_editors %}
66
Run_Mac_Perfomance_Tests{{ editor.version }}:

.yamato/com.unity.ml-agents-promotion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
test_editors:
2-
- version: 2020.3
2+
- version: 2021.3
33
test_platforms:
44
- name: win
55
type: Unity::VM

0 commit comments

Comments
 (0)