@@ -6,29 +6,30 @@ name: tests
66on :
77 push :
88 branches : [master, main]
9- paths : [' slise/*.py', ' tests/*.py' ]
9+ paths : [" slise/*.py", " tests/*.py" ]
1010 pull_request :
11- paths : ['slise/*.py', 'tests/*.py']
11+ paths : ["slise/*.py", "tests/*.py"]
12+ workflow_dispatch :
1213
1314jobs :
1415 build :
15-
1616 runs-on : ubuntu-latest
1717 strategy :
1818 matrix :
19- python-version : ["3.8", "3.9", "3.10"]
19+ python-version : ["3.8", "3.9", "3.10", "3.11" ]
2020
2121 steps :
22- - uses : actions/checkout@v2
23- - name : Set up Python ${{ matrix.python-version }}
24- uses : actions/setup-python@v2
25- with :
26- python-version : ${{ matrix.python-version }}
27- - name : Install dependencies
28- run : |
29- python -m pip install --upgrade pip
30- python -m pip install pytest
31- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32- - name : Test with pytest
33- run : |
34- pytest
22+ - uses : actions/checkout@v2
23+ - name : Set up Python ${{ matrix.python-version }}
24+ uses : actions/setup-python@v2
25+ with :
26+ python-version : ${{ matrix.python-version }}
27+ - name : Install dependencies
28+ run : |
29+ python -m pip install --upgrade pip
30+ python -m pip install pytest build
31+ python -m pip install .
32+ - name : Build package
33+ run : python -m build
34+ - name : Test with pytest
35+ run : pytest
0 commit comments