File tree Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Original file line number Diff line number Diff line change 1- name : Pytest
2- on : [push, pull_request]
1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+ name : Python package
5+
6+ on :
7+ push :
8+ branches : [ main ]
9+ pull_request :
10+ branches : [ main ]
311
412jobs :
513 build :
614
715 runs-on : ubuntu-latest
16+ strategy :
17+ matrix :
18+ python-version : [3.9]
819
920 steps :
10- - uses : actions/checkout@v4
11- - name : Set up Python 3.10
12- uses : actions/setup-python@v5
21+ - uses : actions/checkout@v2
22+ - name : Set up Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@v2
1324 with :
14- python-version : " 3.10 "
25+ python-version : ${{ matrix.python-version }}
1526 - name : Install dependencies
1627 run : |
1728 python -m pip install --upgrade pip
18- python -m pip install -e .[test]
29+ python -m pip install torch==2.3.0 --index-url https://download.pytorch.org/whl/cpu
30+ python -m pip install scipy
1931 - name : Test with pytest
2032 run : |
21- python -m pytest tests/
33+ python setup.py test
You can’t perform that action at this time.
0 commit comments