@@ -5,51 +5,50 @@ name: Python package
5
5
6
6
on :
7
7
push :
8
- branches : [ master ]
8
+ branches : [master]
9
9
pull_request :
10
- branches : [ master ]
10
+ branches : [master]
11
11
12
12
jobs :
13
13
build :
14
-
15
14
runs-on : ubuntu-latest
16
15
strategy :
17
16
fail-fast : false
18
17
matrix :
19
- python-version : ['3.7', '3.11', ' pypy-3.10' ]
18
+ python-version : ["3.10", "3.13", " pypy-3.10" ]
20
19
21
20
steps :
22
- - uses : actions/checkout@v4
23
- with :
24
- submodules : true
25
- - name : Set up Python ${{ matrix.python-version }}
26
- uses : actions/setup-python@v5
27
- with :
28
- python-version : ${{ matrix.python-version }}
29
- - name : Install dependencies
30
- run : |
31
- python -m pip install --upgrade pip
32
- python -m pip install pytest mypy ruff
33
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
34
- if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; fi
35
- - name : Test with pytest
36
- run : |
37
- pytest -v -s
21
+ - uses : actions/checkout@v4
22
+ with :
23
+ submodules : true
24
+ - name : Set up Python ${{ matrix.python-version }}
25
+ uses : actions/setup-python@v5
26
+ with :
27
+ python-version : ${{ matrix.python-version }}
28
+ - name : Install dependencies
29
+ run : |
30
+ python -m pip install --upgrade pip
31
+ python -m pip install pytest mypy ruff
32
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33
+ if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; fi
34
+ - name : Test with pytest
35
+ run : |
36
+ pytest -v -s
38
37
39
38
lint :
40
39
runs-on : ubuntu-latest
41
40
steps :
42
- - uses : actions/checkout@v4
43
- with :
44
- submodules : true
45
- - name : Set up Python ${{ matrix.python-version }}
46
- uses : actions/setup-python@v5
47
- with :
48
- python-version : " 3.12"
49
- - name : Install dependencies
50
- run : |
51
- python -m pip install --upgrade pip
52
- python -m pip install pre-commit
53
- - name : Lint with ruff
54
- run : |
55
- pre-commit run -a
41
+ - uses : actions/checkout@v4
42
+ with :
43
+ submodules : true
44
+ - name : Set up Python ${{ matrix.python-version }}
45
+ uses : actions/setup-python@v5
46
+ with :
47
+ python-version : " 3.12"
48
+ - name : Install dependencies
49
+ run : |
50
+ python -m pip install --upgrade pip
51
+ python -m pip install pre-commit
52
+ - name : Lint with ruff
53
+ run : |
54
+ pre-commit run -a
0 commit comments