@@ -19,25 +19,33 @@ jobs:
19
19
- run : python -m build --sdist --wheel
20
20
- run : python -m twine check dist/*
21
21
22
- standardjs :
22
+ js-lint :
23
23
runs-on : ubuntu-latest
24
24
steps :
25
25
- uses : actions/setup-node@v4
26
- with :
27
- node-version : ' 14.x'
28
26
- uses : actions/checkout@v4
29
- - id : cache-npm
30
- uses : actions/cache@v4
31
- with :
32
- path : ~/.npm
33
- key : ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
34
- restore-keys : |
35
- ${{ runner.os }}-node-
36
27
- name : Install Node dependencies
37
28
run : npm ci
38
29
- run : npm run lint:js
39
30
40
- lint :
31
+
32
+ js-test :
33
+ runs-on : ubuntu-latest
34
+ needs :
35
+ - js-lint
36
+ steps :
37
+ - uses : actions/setup-node@v4
38
+ - uses : actions/checkout@v4
39
+ - name : Install Node dependencies
40
+ run : npm ci
41
+ - run : node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.txt
42
+ - uses : codecov/codecov-action@v4
43
+ with :
44
+ token : ${{ secrets.CODECOV_TOKEN }}
45
+ flags : javascript
46
+ file : lcov.txt
47
+
48
+ py-lint :
41
49
runs-on : ubuntu-latest
42
50
strategy :
43
51
matrix :
@@ -59,20 +67,19 @@ jobs:
59
67
60
68
pytest :
61
69
needs :
62
- - lint
63
- - standardjs
70
+ - py-lint
64
71
- dist
65
72
runs-on : ubuntu-latest
66
73
strategy :
67
74
matrix :
68
75
python-version :
69
- - " 3.10"
70
76
- " 3.11"
71
77
- " 3.12"
78
+ - " 3.13"
72
79
django-version :
73
- - " 3.2"
74
80
- " 4.2"
75
81
- " 5.0"
82
+ - " 5.1"
76
83
steps :
77
84
- uses : actions/checkout@v4
78
85
- name : Set up Python ${{ matrix.python-version }}
@@ -90,12 +97,16 @@ jobs:
90
97
curl -qO "https://chromedriver.storage.googleapis.com/$(curl -q https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip"
91
98
unzip chromedriver_linux64.zip -d bin
92
99
93
- - run : python -m pip install .[test] codecov
100
+ - run : python -m pip install .[test]
94
101
- run : python -m pip install django~=${{ matrix.django-version }}.0
95
102
- run : python -m pytest -m "not selenium"
96
103
env :
97
104
PATH : $PATH:$(pwd)/bin
98
- - run : codecov
105
+ - uses : codecov/codecov-action@v4
106
+ with :
107
+ token : ${{ secrets.CODECOV_TOKEN }}
108
+ flags : python
109
+
99
110
100
111
selenium :
101
112
needs :
@@ -120,6 +131,9 @@ jobs:
120
131
- run : python -m pip install -e .[test]
121
132
- run : python -m pytest -m selenium
122
133
- uses : codecov/codecov-action@v4
134
+ with :
135
+ token : ${{ secrets.CODECOV_TOKEN }}
136
+ flags : selenium
123
137
124
138
125
139
analyze :
0 commit comments