@@ -7,118 +7,123 @@ jobs:
7
7
test-python-3-8 :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
- - uses : actions/checkout@v4
11
- - name : Set up Python 3.8
12
- uses : actions/setup-python@v3
13
- with :
14
- python-version : " 3.8"
15
- - name : Install dependencies
16
- run : |
17
- python -m pip install --upgrade pip
18
- python -m pip install flake8 pytest
19
- python -m pip install .
20
- - name : Lint with flake8
21
- run : |
22
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
23
- - name : Test with pytest
24
- env :
25
- DOC2X_APIKEY : ${{ secrets.DOC2X_APIKEY }}
26
- DOC2X_APIKEY_PERSONAL : ${{ secrets.DOC2X_APIKEY_PERSONAL }}
27
- run : |
28
- pytest -s
10
+ - uses : actions/checkout@v4
11
+ - name : Set up Python 3.8
12
+ uses : actions/setup-python@v3
13
+ with :
14
+ python-version : " 3.8"
15
+ - name : Install dependencies
16
+ run : |
17
+ python -m pip install --upgrade pip
18
+ python -m pip install pytest ruff
19
+ python -m pip install .
20
+ - name : Lint with ruff
21
+ run : |
22
+ ruff check .
23
+ ruff format --check
24
+ - name : Test with pytest
25
+ env :
26
+ DOC2X_APIKEY : ${{ secrets.DOC2X_APIKEY }}
27
+ DOC2X_APIKEY_PERSONAL : ${{ secrets.DOC2X_APIKEY_PERSONAL }}
28
+ run : |
29
+ pytest -s
29
30
30
31
test-python-3-9 :
31
32
needs : test-python-3-8
32
33
runs-on : ubuntu-latest
33
34
steps :
34
- - uses : actions/checkout@v4
35
- - name : Set up Python 3.9
36
- uses : actions/setup-python@v3
37
- with :
38
- python-version : " 3.9"
39
- - name : Install dependencies
40
- run : |
41
- python -m pip install --upgrade pip
42
- python -m pip install flake8 pytest
43
- python -m pip install .
44
- - name : Lint with flake8
45
- run : |
46
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
47
- - name : Test with pytest
48
- env :
49
- DOC2X_APIKEY : ${{ secrets.DOC2X_APIKEY }}
50
- DOC2X_APIKEY_PERSONAL : ${{ secrets.DOC2X_APIKEY_PERSONAL }}
51
- run : |
52
- pytest -s
35
+ - uses : actions/checkout@v4
36
+ - name : Set up Python 3.9
37
+ uses : actions/setup-python@v3
38
+ with :
39
+ python-version : " 3.9"
40
+ - name : Install dependencies
41
+ run : |
42
+ python -m pip install --upgrade pip
43
+ python -m pip install pytest ruff
44
+ python -m pip install .
45
+ - name : Lint with ruff
46
+ run : |
47
+ ruff check .
48
+ ruff format --check
49
+ - name : Test with pytest
50
+ env :
51
+ DOC2X_APIKEY : ${{ secrets.DOC2X_APIKEY }}
52
+ DOC2X_APIKEY_PERSONAL : ${{ secrets.DOC2X_APIKEY_PERSONAL }}
53
+ run : |
54
+ pytest -s
53
55
54
56
test-python-3-10 :
55
57
needs : test-python-3-9
56
58
runs-on : ubuntu-latest
57
59
steps :
58
- - uses : actions/checkout@v4
59
- - name : Set up Python 3.10
60
- uses : actions/setup-python@v3
61
- with :
62
- python-version : " 3.10"
63
- - name : Install dependencies
64
- run : |
65
- python -m pip install --upgrade pip
66
- python -m pip install flake8 pytest
67
- python -m pip install .
68
- - name : Lint with flake8
69
- run : |
70
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
71
- - name : Test with pytest
72
- env :
73
- DOC2X_APIKEY : ${{ secrets.DOC2X_APIKEY }}
74
- DOC2X_APIKEY_PERSONAL : ${{ secrets.DOC2X_APIKEY_PERSONAL }}
75
- run : |
76
- pytest -s
60
+ - uses : actions/checkout@v4
61
+ - name : Set up Python 3.10
62
+ uses : actions/setup-python@v3
63
+ with :
64
+ python-version : " 3.10"
65
+ - name : Install dependencies
66
+ run : |
67
+ python -m pip install --upgrade pip
68
+ python -m pip install pytest ruff
69
+ python -m pip install .
70
+ - name : Lint with ruff
71
+ run : |
72
+ ruff check .
73
+ ruff format --check
74
+ - name : Test with pytest
75
+ env :
76
+ DOC2X_APIKEY : ${{ secrets.DOC2X_APIKEY }}
77
+ DOC2X_APIKEY_PERSONAL : ${{ secrets.DOC2X_APIKEY_PERSONAL }}
78
+ run : |
79
+ pytest -s
77
80
78
81
test-python-3-11 :
79
82
needs : test-python-3-10
80
83
runs-on : ubuntu-latest
81
84
steps :
82
- - uses : actions/checkout@v4
83
- - name : Set up Python 3.11
84
- uses : actions/setup-python@v3
85
- with :
86
- python-version : " 3.11"
87
- - name : Install dependencies
88
- run : |
89
- python -m pip install --upgrade pip
90
- python -m pip install flake8 pytest
91
- python -m pip install .
92
- - name : Lint with flake8
93
- run : |
94
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
95
- - name : Test with pytest
96
- env :
97
- DOC2X_APIKEY : ${{ secrets.DOC2X_APIKEY }}
98
- DOC2X_APIKEY_PERSONAL : ${{ secrets.DOC2X_APIKEY_PERSONAL }}
99
- run : |
100
- pytest -s
85
+ - uses : actions/checkout@v4
86
+ - name : Set up Python 3.11
87
+ uses : actions/setup-python@v3
88
+ with :
89
+ python-version : " 3.11"
90
+ - name : Install dependencies
91
+ run : |
92
+ python -m pip install --upgrade pip
93
+ python -m pip install pytest ruff
94
+ python -m pip install .
95
+ - name : Lint with ruff
96
+ run : |
97
+ ruff check .
98
+ ruff format --check
99
+ - name : Test with pytest
100
+ env :
101
+ DOC2X_APIKEY : ${{ secrets.DOC2X_APIKEY }}
102
+ DOC2X_APIKEY_PERSONAL : ${{ secrets.DOC2X_APIKEY_PERSONAL }}
103
+ run : |
104
+ pytest -s
101
105
102
106
test-python-3-12 :
103
107
needs : test-python-3-11
104
108
runs-on : ubuntu-latest
105
109
steps :
106
- - uses : actions/checkout@v4
107
- - name : Set up Python 3.12
108
- uses : actions/setup-python@v3
109
- with :
110
- python-version : " 3.12"
111
- - name : Install dependencies
112
- run : |
113
- python -m pip install --upgrade pip
114
- python -m pip install flake8 pytest
115
- python -m pip install .
116
- - name : Lint with flake8
117
- run : |
118
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
119
- - name : Test with pytest
120
- env :
121
- DOC2X_APIKEY : ${{ secrets.DOC2X_APIKEY }}
122
- DOC2X_APIKEY_PERSONAL : ${{ secrets.DOC2X_APIKEY_PERSONAL }}
123
- run : |
124
- pytest -s
110
+ - uses : actions/checkout@v4
111
+ - name : Set up Python 3.12
112
+ uses : actions/setup-python@v3
113
+ with :
114
+ python-version : " 3.12"
115
+ - name : Install dependencies
116
+ run : |
117
+ python -m pip install --upgrade pip
118
+ python -m pip install pytest ruff
119
+ python -m pip install .
120
+ - name : Lint with ruff
121
+ run : |
122
+ ruff check .
123
+ ruff format --check
124
+ - name : Test with pytest
125
+ env :
126
+ DOC2X_APIKEY : ${{ secrets.DOC2X_APIKEY }}
127
+ DOC2X_APIKEY_PERSONAL : ${{ secrets.DOC2X_APIKEY_PERSONAL }}
128
+ run : |
129
+ pytest -s
0 commit comments