Skip to content

[CI] Migration CCI->GHA #2

[CI] Migration CCI->GHA

[CI] Migration CCI->GHA #2

Workflow file for this run

name: Unit-tests on MacOS CPU
on:
pull_request:
push:
branches:
- nightly
- main
- release/*
workflow_dispatch:
env:
CHANNEL: "nightly"
concurrency:
# Documentation suggests ${{ github.head_ref }}, but that's only available on pull_request/pull_request_target triggers, so using ${{ github.ref }}.
# On master, we want all builds to complete even if merging happens faster to make it easier to discover at which point something broke.
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }}
cancel-in-progress: true
jobs:
tests-intel:
strategy:
matrix:
python_version: ["3.8", "3.11"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
with:
repository: pytorch/rl
timeout: 120
script: |
# Set env vars from matrix
export PYTHON_VERSION=${{ matrix.python_version }}
export CU_VERSION="cpu"
export SYSTEM_VERSION_COMPAT=0
export TORCH_VERSION=nightly
echo "PYTHON_VERSION: $PYTHON_VERSION"
echo "CU_VERSION: $CU_VERSION"
## setup_env.sh
bash .circleci/unittest/linux/scripts/setup_env.sh
bash .circleci/unittest/linux/scripts/install.sh
bash .circleci/unittest/linux/scripts/run_test.sh
bash .circleci/unittest/linux/scripts/post_process.sh
tests-silicon:
strategy:
matrix:
python_version: ["3.8"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
runs-on: macos-m1-12

Check failure on line 53 in .github/workflows/test-macos.yml

View workflow run for this annotation

GitHub Actions / Unit-tests on MacOS CPU

Invalid workflow file

The workflow is not valid. .github/workflows/test-macos.yml (Line: 53, Col: 5): Unexpected value 'runs-on'
with:
repository: pytorch/rl
timeout: 120
script: |
# Set env vars from matrix
export PYTHON_VERSION=${{ matrix.python_version }}
export CU_VERSION="cpu"
export SYSTEM_VERSION_COMPAT=0
export TORCH_VERSION=nightly
echo "PYTHON_VERSION: $PYTHON_VERSION"
echo "CU_VERSION: $CU_VERSION"
## setup_env.sh
bash .circleci/unittest/linux/scripts/setup_env.sh
bash .circleci/unittest/linux/scripts/install.sh
bash .circleci/unittest/linux/scripts/run_test.sh
bash .circleci/unittest/linux/scripts/post_process.sh