Skip to content
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

Improve GitHub Action for testing #268

Closed
wants to merge 14 commits into from
4 changes: 3 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.7]
python-version: ["3.7", "3.10"]
torch-version: [1.11.0, 1.12.0]

steps:
Expand All @@ -31,6 +31,8 @@ jobs:

- name: Install main package
run: |
# the -e/--editable flag is required otherwise the following error is raised:
# ImportError: Could not find module '_version_cpu' in /home/runner/work/pytorch_scatter/pytorch_scatter/torch_scatter
pip install -e .[test]

- name: Run test-suite
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def get_extensions():
return extensions


install_requires = []
install_requires = ['torch']
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still have my problems with this, but mostly only due to bad experience in the past. For example, it is impossible for me to install the sentence-transformers library since due to whatever reasons PyTorch will always get re-installed.

It also looks like pip install torch-scatter will still fail when no PyTorch version is installed, right?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will see if I can replicate this problem using some clean virtual environments

setup_requires = []

test_requires = [
'pytest',
Expand Down