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