Skip to content

Commit 422f1ac

Browse files
author
Vincent Moens
authored
[CI] Remove all macos x86 jobs (#2117)
1 parent 87eee5e commit 422f1ac

File tree

2 files changed

+1
-144
lines changed

2 files changed

+1
-144
lines changed

.github/workflows/nightly_build.yml

Lines changed: 0 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -67,89 +67,6 @@ jobs:
6767
name: torchrl-linux-${{ matrix.python_version[0] }}_${{ matrix.cuda_support[2] }}.whl
6868
path: dist/*.whl
6969

70-
build-wheel-mac:
71-
# Don't run on forked repos.
72-
if: github.repository_owner == 'pytorch'
73-
runs-on: macos-latest
74-
strategy:
75-
matrix:
76-
python_version: [["3.8", "3.8"], ["3.9", "3.9"], ["3.10", "3.10.3"], ["3.11", "3.11"]]
77-
steps:
78-
- name: Setup Python
79-
uses: actions/setup-python@v2
80-
with:
81-
python-version: ${{ matrix.python_version[1] }}
82-
architecture: x64
83-
- name: Checkout torchrl
84-
uses: actions/checkout@v2
85-
- name: Install PyTorch nightly
86-
run: |
87-
python3 -mpip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
88-
- name: Build TorchRL Nightly
89-
run: |
90-
export CC=clang CXX=clang++
91-
python3 -mpip install wheel
92-
python3 -mpip install ninja
93-
python3 setup.py bdist_wheel \
94-
--package_name torchrl-nightly
95-
- name: Upload wheel for the test-wheel job
96-
uses: actions/upload-artifact@v2
97-
with:
98-
name: torchrl-mac-${{ matrix.python_version[0] }}.whl
99-
path: dist/*.whl
100-
101-
test-wheel-mac:
102-
# Don't run on forked repos.
103-
if: github.repository_owner == 'pytorch'
104-
needs: build-wheel-mac
105-
runs-on: macos-latest
106-
strategy:
107-
matrix:
108-
python_version: [["3.8", "3.8"], ["3.9", "3.9"], ["3.10", "3.10.3"], ["3.11", "3.11"]]
109-
steps:
110-
- name: Setup Python
111-
uses: actions/setup-python@v2
112-
with:
113-
python-version: ${{ matrix.python_version[1] }}
114-
architecture: x64
115-
- name: Checkout torchrl
116-
uses: actions/checkout@v2
117-
- name: Install PyTorch Nightly
118-
run: |
119-
python3 -mpip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
120-
- name: Upgrade pip
121-
run: |
122-
python3 -mpip install --upgrade pip
123-
- name: Install test dependencies
124-
run: |
125-
python3 -mpip install numpy pytest --no-cache-dir
126-
- name: Install tensordict
127-
run: |
128-
python3 -mpip install git+https://github.com/pytorch/tensordict.git
129-
- name: Download built wheels
130-
uses: actions/download-artifact@v2
131-
with:
132-
name: torchrl-mac-${{ matrix.python_version[0] }}.whl
133-
path: /tmp/wheels
134-
- name: Install built wheels
135-
run: |
136-
python3 -mpip install /tmp/wheels/*
137-
- name: Log version string
138-
run: |
139-
# Avoid ambiguity of "import torchrl" by deleting the source files.
140-
rm -rf torchrl/
141-
python3 -c "import torchrl; print(torchrl.__version__)"
142-
- name: Run tests
143-
run: |
144-
set -e
145-
export IN_CI=1
146-
mkdir test-reports
147-
python -m torch.utils.collect_env
148-
python -c "import torchrl; print(torchrl.__version__);from torchrl.data import ReplayBuffer"
149-
EXIT_STATUS=0
150-
pytest test/smoke_test.py -v --durations 200
151-
exit $EXIT_STATUS
152-
15370
upload-wheel-linux:
15471
# Don't run on forked repos.
15572
if: github.repository_owner == 'pytorch'
@@ -181,34 +98,6 @@ jobs:
18198
/tmp/wheels/torchrl_nightly-*.whl \
18299
--verbose
183100
184-
upload-wheel-mac:
185-
# Don't run on forked repos.
186-
if: github.repository_owner == 'pytorch'
187-
needs: test-wheel-mac
188-
runs-on: macos-latest
189-
strategy:
190-
matrix:
191-
python_version: [["3.8", "3.8"], ["3.9", "3.9"], ["3.10", "3.10.3"], ["3.11", "3.11"]]
192-
steps:
193-
- name: Checkout torchrl
194-
uses: actions/checkout@v2
195-
- name: Download built wheels
196-
uses: actions/download-artifact@v2
197-
with:
198-
name: torchrl-mac-${{ matrix.python_version[0] }}.whl
199-
path: /tmp/wheels
200-
- name: Push TorchRL Binary to PYPI
201-
env:
202-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
203-
run: |
204-
python3 -mpip install twine
205-
python3 -m twine upload \
206-
--username __token__ \
207-
--password "$PYPI_TOKEN" \
208-
--skip-existing \
209-
/tmp/wheels/torchrl_nightly-*.whl \
210-
--verbose
211-
212101
test-wheel-linux:
213102
# Don't run on forked repos.
214103
if: github.repository_owner == 'pytorch'

.github/workflows/wheels.yml

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -52,38 +52,6 @@ jobs:
5252
name: torchrl-batch.whl
5353
path: dist/*.whl
5454

55-
build-wheel-mac:
56-
runs-on: macos-11
57-
strategy:
58-
matrix:
59-
python_version: [["3.8", "3.8"], ["3.9", "3.9"], ["3.10", "3.10.3"], ["3.11", "3.11"]]
60-
steps:
61-
- name: Setup Python
62-
uses: actions/setup-python@v2
63-
with:
64-
python-version: ${{ matrix.python_version[1] }}
65-
architecture: x64
66-
- name: Checkout torchrl
67-
uses: actions/checkout@v2
68-
- name: Install PyTorch RC
69-
run: |
70-
python3 -mpip install torch --index-url https://download.pytorch.org/whl/cpu
71-
- name: Build wheel
72-
run: |
73-
export CC=clang CXX=clang++
74-
python3 -mpip install wheel
75-
BUILD_VERSION=0.4.0 python3 setup.py bdist_wheel
76-
- name: Upload wheel for the test-wheel job
77-
uses: actions/upload-artifact@v2
78-
with:
79-
name: torchrl-mac-${{ matrix.python_version[0] }}.whl
80-
path: dist/torchrl-*.whl
81-
- name: Upload wheel for download
82-
uses: actions/upload-artifact@v2
83-
with:
84-
name: torchrl-batch.whl
85-
path: dist/*.whl
86-
8755
build-wheel-windows:
8856
runs-on: windows-latest
8957
strategy:
@@ -121,7 +89,7 @@ jobs:
12189
needs: [build-wheel-linux, build-wheel-mac]
12290
strategy:
12391
matrix:
124-
os: [["linux", "ubuntu-20.04"], ["mac", "macos-11"]]
92+
os: [["linux", "ubuntu-20.04"]]
12593
python_version: [ "3.8", "3.9", "3.10", "3.11" ]
12694
runs-on: ${{ matrix.os[1] }}
12795
steps:

0 commit comments

Comments
 (0)