File tree 1 file changed +20
-8
lines changed
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 ]
3
11
4
12
jobs :
5
13
build :
6
14
7
15
runs-on : ubuntu-latest
16
+ strategy :
17
+ matrix :
18
+ python-version : [3.9]
8
19
9
20
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
13
24
with :
14
- python-version : " 3.10 "
25
+ python-version : ${{ matrix.python-version }}
15
26
- name : Install dependencies
16
27
run : |
17
28
python -m pip install --upgrade pip
18
- python -m pip install -e .[test]
29
+ python -m pip install torch==2.1.0 --index-url https://download.pytorch.org/whl/cpu
30
+ python -m pip install scipy
19
31
- name : Test with pytest
20
32
run : |
21
- python -m pytest tests/
33
+ python setup.py test
You can’t perform that action at this time.
0 commit comments