OptionalDependencyTestsLinux: name : LinuxOptionalDependenciesTests agent: type: Unity::VM image: package-ci/ubuntu:stable flavor: b1.medium commands: - | 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 unity-config project add dependency com.unity.modules.physics@1.0.0 unity-config project add dependency com.unity.modules.physics2d@1.0.0 upm-ci project test -u 2019.4 --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 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-test.yml")