Skip to content

Commit b48fa67

Browse files
HuanyuZhangfacebook-github-bot
authored andcommitted
Test the compatibility to numpy 2.0 (#746)
Summary: Pull Request resolved: #746 Differential Revision: D71702108
1 parent efe7329 commit b48fa67

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/ci_cpu.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Python
2222
uses: actions/setup-python@v2
2323
with:
24-
python-version: 3.9
24+
python-version: '3.9'
2525
- name: Install dependencies
2626
run: |
2727
python -m pip install --upgrade pip
@@ -35,32 +35,32 @@ jobs:
3535
run: isort -l 88 -o opacus --lines-after-imports 2 -m 3 --trailing-comma --check-only .
3636

3737
########### UNIT TESTS ##############
38-
unittest_py38_torch_release:
38+
unittest_py310_torch_release:
3939
runs-on: ubuntu-latest
4040
steps:
4141
- name: Checkout
4242
uses: actions/checkout@v2
4343
- name: Set up Python
4444
uses: actions/setup-python@v2
4545
with:
46-
python-version: 3.8
46+
python-version: '3.10'
4747
- name: Install dependencies
4848
run: |
4949
python -m pip install --upgrade pip
5050
pip install pytest coverage coveralls
5151
./scripts/install_via_pip.sh
5252
- name: Run unit tests
5353
run: |
54-
mkdir unittest-py38-release-reports
54+
mkdir unittest-py310-release-reports
5555
coverage run -m pytest --doctest-modules -p conftest opacus
5656
coverage report -i -m
5757
# Format into xml to be used for coveralls
5858
coverage xml -i
5959
- name: Store test results
6060
uses: actions/upload-artifact@v4
6161
with:
62-
name: unittest-py38-release-reports
63-
path: unittest-py38-release-reports
62+
name: unittest-py310-release-reports
63+
path: unittest-py310-release-reports
6464
- name: Send coverage to Coveralls (parallel)
6565
uses: coverallsapp/github-action@v2
6666
with:
@@ -179,7 +179,7 @@ jobs:
179179

180180
######## FINISH COVERALLS ##########
181181
finish_coveralls_parallel:
182-
needs: [unittest_py38_torch_release, unittest_py39_torch_release, integrationtest_py39_torch_release_cpu]
182+
needs: [unittest_py310_torch_release, unittest_py39_torch_release, integrationtest_py39_torch_release_cpu]
183183
runs-on: ubuntu-latest
184184
steps:
185185
- name: Checkout

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v2
1919
with:
20-
python-version: '3.8'
20+
python-version: '3.9'
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip

.github/workflows/test-installation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
max-parallel: 48
1616
matrix:
1717
os: [windows-latest, ubuntu-latest, macos-latest]
18-
python-version: ["3.8", "3.9", "3.10"]
18+
python-version: ["3.9", "3.10"]
1919
torch-version: [1.13.1]
2020

2121
runs-on: ${{ matrix.os }}

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
numpy>=1.15,<2.0
1+
numpy>=2.0
22
torch>=2.0
33
scipy>=1.2
44
opt-einsum>=3.3.0

0 commit comments

Comments
 (0)