-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: remove extra arch + refactor unit tests workflow #2
Changes from all commits
30a2d2f
068aa9f
77a7a80
448ee1d
b6dd49e
2126b0a
133c6a7
2371659
5e259a8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,15 @@ on: | |
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- "master" | ||
|
||
jobs: | ||
unittests: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: [3.7, 3.8] | ||
torch-version: [1.10.0, 1.11.0, 1.12.0] | ||
os: ["ubuntu-latest"] | ||
python-version: ["3.10"] | ||
torch-version: ["2.0.1", "2.1.1", "2.2.1", "2.3.1", "2.4.1"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -23,15 +23,9 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install "numpy<=1.21" scikit-learn flake8 setuptools numba | ||
|
||
- name: Install torch ${{ matrix.torch-version }} windows + linux | ||
if: ${{matrix.os != 'macos-latest'}} | ||
run: pip install torch==${{ matrix.torch-version }}+cpu -f https://download.pytorch.org/whl/torch_stable.html | ||
- name: Install torch ${{ matrix.torch-version }} macos | ||
if: ${{matrix.os == 'macos-latest'}} | ||
run: pip install torch==${{ matrix.torch-version }} | ||
|
||
pip install "numpy==1.26.4" scikit-learn flake8 setuptools numba | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. curious, why are the other dependencies not pinned to a specific version? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've received an error from Torch - Numpy interaction and this is the version we have in OSS dependencies currently. The public repository doesn't have any changes to the unit tests workflow for 2 years - they don't support Python 3.8 yet so I thought this is already much better than what there was 😛 |
||
- name: Install Torch ${{ matrix.torch-version }} | ||
run: pip install torch==${{ matrix.torch-version }}+cpu -f https://download.pytorch.org/whl/torch | ||
- name: Build package | ||
run: | | ||
python setup.py build_ext --inplace | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,4 @@ build | |
.vscode/ | ||
dist/ | ||
torch_points_kernels.egg-info/ | ||
.idea/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change was not listed as a goal of this PR. Why don't we need macos and windows anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't run anything on macOS or Windows so I didn't want us to waste time / resources with those.