Update automated trigger references to support develop branch (#36)
* Update automated trigger references to support develop branch * Update pull request template links to refer to develop branch. * Fix release branch name for github actions * Update pre-commit pattern * Removing test that no longer applys to this repo
This commit is contained in:
Родитель
c2a9a835d1
Коммит
23fc08a04b
|
@ -17,8 +17,8 @@ Describe the changes made in this PR.
|
|||
|
||||
### Checklist
|
||||
- [ ] Added tests that prove my fix is effective or that my feature works
|
||||
- [ ] Updated the [changelog](https://github.com/Unity-Technologies/ml-agents/blob/main/com.unity.ml-agents/CHANGELOG.md) (if applicable)
|
||||
- [ ] Updated the [documentation](https://github.com/Unity-Technologies/ml-agents/tree/main/docs) (if applicable)
|
||||
- [ ] Updated the [migration guide](https://github.com/Unity-Technologies/ml-agents/blob/main/docs/Migrating.md) (if applicable)
|
||||
- [ ] Updated the [changelog](https://github.com/Unity-Technologies/ml-agents/blob/develop/com.unity.ml-agents/CHANGELOG.md) (if applicable)
|
||||
- [ ] Updated the [documentation](https://github.com/Unity-Technologies/ml-agents/tree/develop/docs) (if applicable)
|
||||
- [ ] Updated the [migration guide](https://github.com/Unity-Technologies/ml-agents/blob/develop/docs/Migrating.md) (if applicable)
|
||||
|
||||
### Other comments
|
||||
|
|
|
@ -8,7 +8,10 @@ on:
|
|||
- 'colab/**'
|
||||
- '.github/workflows/colab.yml'
|
||||
push:
|
||||
branches: [main]
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
- 'release/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
|
|
@ -3,7 +3,10 @@ name: pre-commit
|
|||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
- 'release/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
|
|
@ -9,7 +9,10 @@ on:
|
|||
- 'test_requirements.txt'
|
||||
- '.github/workflows/pytest.yml'
|
||||
push:
|
||||
branches: [main]
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
- 'release/**'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
pytest_markers:
|
||||
|
|
|
@ -29,6 +29,7 @@ test_coverage_{{ package.name }}_{{ platform.name }}_{{ editor.version }}:
|
|||
{% if platform.name == "linux" %}
|
||||
expression: |
|
||||
(pull_request.target eq "main" OR
|
||||
pull_request.target eq "develop" OR
|
||||
pull_request.target match "release.+") AND
|
||||
NOT pull_request.draft AND
|
||||
(pull_request.changes.any match "com.unity.ml-agents/**" OR
|
||||
|
|
|
@ -1,66 +0,0 @@
|
|||
optional_deps:
|
||||
- name: Analytics
|
||||
project: "OptionalDepedencyTests/NoAnalyticsModule"
|
||||
version: 2020.3
|
||||
- name: Physics
|
||||
project: OptionalDepedencyTests/NoPhysicsModule
|
||||
version: 2020.3
|
||||
- name: Physics2D
|
||||
project: OptionalDepedencyTests/NoPhysics2DModule
|
||||
version: 2020.3
|
||||
---
|
||||
|
||||
{% for optional_dep in optional_deps %}
|
||||
OptionalDependencyTests_{{ optional_dep.name }}:
|
||||
name : Test Optional Package Dependencies {{ optional_dep.name }}
|
||||
agent:
|
||||
type: Unity::VM
|
||||
image: ml-agents/ml-agents-ubuntu-18.04:latest
|
||||
flavor: b1.medium
|
||||
commands:
|
||||
- git submodule update --init --recursive
|
||||
- |
|
||||
curl -L https://artifactory.prd.it.unity3d.com/artifactory/api/gpg/key/public | sudo apt-key add -
|
||||
sudo sh -c "echo 'deb https://artifactory.prd.it.unity3d.com/artifactory/unity-apt-local bionic main' > /etc/apt/sources.list.d/unity.list"
|
||||
sudo apt update
|
||||
sudo apt install -y unity-config
|
||||
npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
|
||||
unity-config settings editor-path ./.Editor
|
||||
unity-config project create opt-deps-test
|
||||
unity-config project add dependency com.unity.ml-agents/
|
||||
unity-config project add testable com.unity.ml-agents
|
||||
unity-config project add dependency com.unity.modules.imageconversion@1.0.0
|
||||
unity-config project add dependency com.unity.modules.jsonserialize@1.0.0
|
||||
{% unless optional_dep.name == "Physics" %}
|
||||
unity-config project add dependency com.unity.modules.physics@1.0.0
|
||||
{% endunless %}
|
||||
{% unless optional_dep.name == "Physics2D" %}
|
||||
unity-config project add dependency com.unity.modules.physics2d@1.0.0
|
||||
{% endunless %}
|
||||
{% unless optional_dep.name == "Analytics" %}
|
||||
unity-config project add dependency com.unity.modules.unityanalytics@1.0.0
|
||||
{% endunless %}
|
||||
upm-ci project test -u {{ optional_dep.version }} --type project-tests --project-path opt-deps-test --package-filter com.unity.ml-agents
|
||||
artifacts:
|
||||
logs:
|
||||
paths:
|
||||
- "upm-ci~/test-results/**/*"
|
||||
dependencies:
|
||||
- .yamato/com.unity.ml-agents-pack.yml#pack
|
||||
{% for coverage_editor in coverage_test_editors %}
|
||||
{% for coverage_platform in coverage_test_platforms %}
|
||||
{% for coverage_package in coverage_test_packages %}
|
||||
- .yamato/com.unity.ml-agents-coverage.yml#test_coverage_{{ coverage_package.name }}_{{ coverage_platform.name }}_{{ coverage_editor.version }}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
triggers:
|
||||
cancel_old_ci: true
|
||||
expression: |
|
||||
(pull_request.target eq "main" OR
|
||||
pull_request.target match "release.+") AND
|
||||
NOT pull_request.draft AND
|
||||
(pull_request.changes.any match "com.unity.ml-agents/**" OR
|
||||
pull_request.changes.any match ".yamato/com.unity.ml-agents-optional-dep-tests.yml")
|
||||
{% endfor %}
|
||||
|
|
@ -21,7 +21,7 @@ Run_Mac_Perfomance_Tests{{ editor.version }}:
|
|||
triggers:
|
||||
cancel_old_ci: true
|
||||
recurring:
|
||||
- branch: main
|
||||
- branch: develop
|
||||
frequency: daily
|
||||
artifacts:
|
||||
logs:
|
||||
|
|
|
@ -59,7 +59,7 @@ all_package_tests:
|
|||
triggers:
|
||||
cancel_old_ci: true
|
||||
recurring:
|
||||
- branch: main
|
||||
- branch: develop
|
||||
frequency: daily
|
||||
|
||||
{% for package in packages %}
|
||||
|
@ -100,6 +100,7 @@ test_{{ package.name }}_{{ platform.name }}_{{ editor.version }}:
|
|||
{% if platform.name == "linux" %}
|
||||
expression: |
|
||||
(pull_request.target eq "main" OR
|
||||
pull_request.target eq "develop" OR
|
||||
pull_request.target match "release.+") AND
|
||||
NOT pull_request.draft AND
|
||||
(pull_request.changes.any match "com.unity.ml-agents/**" OR
|
||||
|
|
|
@ -25,6 +25,7 @@ test_compressed_obs_{{ editor.version }}:
|
|||
{% if editor.extra_test == "sensor" %}
|
||||
expression: |
|
||||
(pull_request.target eq "main" OR
|
||||
pull_request.target eq "develop" OR
|
||||
pull_request.target match "release.+") AND
|
||||
NOT pull_request.draft AND
|
||||
(pull_request.changes.any match "com.unity.ml-agents/**" OR
|
||||
|
|
|
@ -25,6 +25,7 @@ test_gym_interface_{{ editor.version }}:
|
|||
{% if editor.extra_test == "gym" %}
|
||||
expression: |
|
||||
(pull_request.target eq "main" OR
|
||||
pull_request.target eq "develop" OR
|
||||
pull_request.target match "release.+") AND
|
||||
NOT pull_request.draft AND
|
||||
(pull_request.changes.any match "com.unity.ml-agents/**" OR
|
||||
|
|
|
@ -32,6 +32,7 @@ test_linux_protobuf_generation:
|
|||
cancel_old_ci: true
|
||||
expression: |
|
||||
(pull_request.target eq "main" OR
|
||||
pull_request.target eq "develop" OR
|
||||
pull_request.target match "release.+") AND
|
||||
NOT pull_request.draft AND
|
||||
(pull_request.changes.any match "protobuf-definitions/**" OR
|
||||
|
|
|
@ -23,6 +23,7 @@ pytest_gpu:
|
|||
cancel_old_ci: true
|
||||
expression: |
|
||||
(push.branch eq "main" OR
|
||||
push.branch eq "develop" OR
|
||||
push.branch match "release.+") AND
|
||||
push.changes.any match "ml-agents/**" AND
|
||||
NOT push.changes.all match "**/*.md"
|
||||
|
|
|
@ -27,6 +27,7 @@ test_linux_ll_api_{{ editor.version }}:
|
|||
{% if editor.extra_test == "llapi" %}
|
||||
expression: |
|
||||
(pull_request.target eq "main" OR
|
||||
pull_request.target eq "develop" OR
|
||||
pull_request.target match "release.+") AND
|
||||
NOT pull_request.draft AND
|
||||
(pull_request.changes.any match "com.unity.ml-agents/**" OR
|
||||
|
|
|
@ -27,6 +27,7 @@ test_linux_standalone_{{ editor.version }}:
|
|||
cancel_old_ci: true
|
||||
expression: |
|
||||
(pull_request.target eq "main" OR
|
||||
pull_request.target eq "develop" OR
|
||||
pull_request.target match "release.+") AND
|
||||
NOT pull_request.draft AND
|
||||
(pull_request.changes.any match "com.unity.ml-agents/**" OR
|
||||
|
|
|
@ -19,7 +19,7 @@ test_webgl_standalone_{{ editor_version }}:
|
|||
triggers:
|
||||
cancel_old_ci: true
|
||||
recurring:
|
||||
- branch: main
|
||||
- branch: develop
|
||||
frequency: weekly
|
||||
artifacts:
|
||||
logs:
|
||||
|
|
|
@ -30,7 +30,7 @@ test_mac_backcompat_2019.4:
|
|||
triggers:
|
||||
cancel_old_ci: true
|
||||
recurring:
|
||||
- branch: main
|
||||
- branch: develop
|
||||
frequency: daily
|
||||
artifacts:
|
||||
logs:
|
||||
|
|
|
@ -22,6 +22,7 @@ test_linux_training_int_{{ editor.version }}:
|
|||
cancel_old_ci: true
|
||||
expression: |
|
||||
(pull_request.target eq "main" OR
|
||||
pull_request.target eq "develop" OR
|
||||
pull_request.target match "release.+") AND
|
||||
NOT pull_request.draft AND
|
||||
(pull_request.changes.any match "com.unity.ml-agents/**" OR
|
||||
|
|
Загрузка…
Ссылка в новой задаче