1
- # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
1
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
2
4
3
name : Python package
7
6
push :
8
7
branches : [main]
9
8
pull_request :
10
- branches : [main]
11
9
12
10
jobs :
13
11
build :
@@ -16,24 +14,21 @@ jobs:
16
14
strategy :
17
15
fail-fast : false
18
16
matrix :
19
- python-version : ['3.7 ', '3.8 ', '3.9 ', '3.10 ']
17
+ python-version : ['3.10 ', '3.11 ', '3.12 ', '3.13 ']
20
18
21
19
steps :
22
20
- uses : actions/checkout@v3
23
- - name : Set up Python ${{ matrix.python-version }}
21
+ - name : Set up Python ${{matrix.python-version}}
24
22
uses : actions/setup-python@v3
25
23
with :
26
- python-version : ${{ matrix.python-version }}
24
+ python-version : ${{matrix.python-version}}
27
25
- name : Install dependencies
28
26
run : |
29
27
python -m pip install --upgrade pip
30
- python -m pip install -r test-requirements.txt
31
- - name : Lint with flake8
28
+ python -m pip install ruff
29
+ - name : Lint with ruff
32
30
run : |
33
- # stop the build if there are Python syntax errors or undefined names
34
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35
- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
36
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37
- - name : Test with unittest
31
+ ruff check .
32
+ - name : Test with pytest
38
33
run : |
39
34
python tests.py -v
0 commit comments