@@ -6,29 +6,30 @@ name: tests
6
6
on :
7
7
push :
8
8
branches : [master, main]
9
- paths : [' slise/*.py', ' tests/*.py' ]
9
+ paths : [" slise/*.py", " tests/*.py" ]
10
10
pull_request :
11
- paths : ['slise/*.py', 'tests/*.py']
11
+ paths : ["slise/*.py", "tests/*.py"]
12
+ workflow_dispatch :
12
13
13
14
jobs :
14
15
build :
15
-
16
16
runs-on : ubuntu-latest
17
17
strategy :
18
18
matrix :
19
- python-version : ["3.8", "3.9", "3.10"]
19
+ python-version : ["3.8", "3.9", "3.10", "3.11" ]
20
20
21
21
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