Skip to content

Commit 2b9fb05

Browse files
committed
macos cpu unit tests
1 parent 4456db0 commit 2b9fb05

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/test-macos-cpu.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Unit-tests on MacOS CPU
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- nightly
8+
- main
9+
- release/*
10+
workflow_dispatch:
11+
12+
env:
13+
CHANNEL: "nightly"
14+
15+
jobs:
16+
tests:
17+
strategy:
18+
matrix:
19+
python_version: ["3.8", "3.9", "3.10"]
20+
fail-fast: false
21+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
22+
with:
23+
repository: pytorch/rl
24+
timeout: 120
25+
script: |
26+
# Set env vars from matrix
27+
export PYTHON_VERSION=${{ matrix.python_version }}
28+
export CU_VERSION="cpu"
29+
30+
echo "PYTHON_VERSION: $PYTHON_VERSION"
31+
echo "CU_VERSION: $CU_VERSION"
32+
33+
## setup_env.sh
34+
./.circleci/unittest/linux/scripts/setup_env.sh
35+
36+
## install.sh
37+
./.circleci/unittest/linux/scripts/install.sh
38+
39+
## run_test.sh
40+
./.circleci/unittest/linux/scripts/run_test.sh
41+
42+
## post_process.sh
43+
./.circleci/unittest/linux/scripts/post_process.sh

0 commit comments

Comments
 (0)