@@ -6,54 +6,50 @@ name: Python package
66on :
77 push :
88 paths-ignore :
9- - ' docs/**'
9+ - " docs/**"
1010 pull_request :
11- branches : ' * '
11+ branches : " * "
1212
1313jobs :
1414 build :
15-
1615 runs-on : ubuntu-latest
1716 strategy :
1817 fail-fast : false
1918 matrix :
20- python-version : [' 3.10', ' 3.11', ' 3.12', ' 3.13' ]
19+ python-version : [" 3.10", " 3.11", " 3.12", " 3.13" ]
2120
2221 steps :
23- - uses : actions/checkout@v2
24- - name : Set up Python ${{ matrix.python-version }}
25- uses : actions/setup-python@v2
26- with :
27- python-version : ${{ matrix.python-version }}
28- - name : Install dependencies
29- run : |
30- python -m pip install --upgrade pip
31- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32- - name : Test
33- run : |
34- python setup.py test
35-
36-
22+ - uses : actions/checkout@v4
23+ - name : Set up Python ${{ matrix.python-version }}
24+ uses : actions/setup-python@v4
25+ with :
26+ python-version : ${{ matrix.python-version }}
27+ - name : Install dependencies
28+ run : |
29+ python -m pip install --upgrade pip
30+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31+ - name : Test
32+ run : |
33+ python -m unittest discover -v
34+
3735 lint :
38-
3936 runs-on : ubuntu-latest
4037 strategy :
4138 fail-fast : false
4239 matrix :
43- python-version : [3.13]
40+ python-version : [3.13]
4441
4542 steps :
46- - uses : actions/checkout@v2
47- - name : Set up Python ${{ matrix.python-version }}
48- uses : actions/setup-python@v2
49- with :
50- python-version : ${{ matrix.python-version }}
51- - name : Install dependencies
52- run : |
53- python -m pip install --upgrade pip
54- python -m pip install pycodestyle
55- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
56- - name : Lint with pycodestyle
57- run : |
58- pycodestyle tableaudocumentapi test samples
59-
43+ - uses : actions/checkout@v2
44+ - name : Set up Python ${{ matrix.python-version }}
45+ uses : actions/setup-python@v2
46+ with :
47+ python-version : ${{ matrix.python-version }}
48+ - name : Install dependencies
49+ run : |
50+ python -m pip install --upgrade pip
51+ python -m pip install pycodestyle
52+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
53+ - name : Lint with pycodestyle
54+ run : |
55+ pycodestyle tableaudocumentapi test samples
0 commit comments