@@ -11,33 +11,41 @@ jobs:
1111 dist :
1212 runs-on : ubuntu-latest
1313 steps :
14+ - uses : actions/checkout@v4
1415 - uses : actions/setup-python@v5
1516 with :
1617 python-version : " 3.x"
17- - uses : actions/checkout@v4
1818 - run : python -m pip install --upgrade pip build wheel twine
1919 - run : python -m build --sdist --wheel
2020 - run : python -m twine check dist/*
2121
22- standardjs :
22+ js-lint :
2323 runs-on : ubuntu-latest
2424 steps :
25- - uses : actions/setup-node@v4
26- with :
27- node-version : ' 14.x'
2825 - 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-
26+ - uses : actions/setup-node@v4
3627 - name : Install Node dependencies
3728 run : npm ci
3829 - run : npm run lint:js
3930
40- lint :
31+
32+ js-test :
33+ runs-on : ubuntu-latest
34+ needs :
35+ - js-lint
36+ steps :
37+ - uses : actions/checkout@v4
38+ - uses : actions/setup-node@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 :
4149 runs-on : ubuntu-latest
4250 strategy :
4351 matrix :
@@ -59,20 +67,19 @@ jobs:
5967
6068 pytest :
6169 needs :
62- - lint
63- - standardjs
70+ - py-lint
6471 - dist
6572 runs-on : ubuntu-latest
6673 strategy :
6774 matrix :
6875 python-version :
69- - " 3.10"
7076 - " 3.11"
7177 - " 3.12"
78+ - " 3.13"
7279 django-version :
73- - " 3.2"
7480 - " 4.2"
7581 - " 5.0"
82+ - " 5.1"
7683 steps :
7784 - uses : actions/checkout@v4
7885 - name : Set up Python ${{ matrix.python-version }}
@@ -90,12 +97,16 @@ jobs:
9097 curl -qO "https://chromedriver.storage.googleapis.com/$(curl -q https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip"
9198 unzip chromedriver_linux64.zip -d bin
9299
93- - run : python -m pip install .[test] codecov
100+ - run : python -m pip install .[test]
94101 - run : python -m pip install django~=${{ matrix.django-version }}.0
95102 - run : python -m pytest -m "not selenium"
96103 env :
97104 PATH : $PATH:$(pwd)/bin
98- - run : codecov
105+ - uses : codecov/codecov-action@v4
106+ with :
107+ token : ${{ secrets.CODECOV_TOKEN }}
108+ flags : python
109+
99110
100111 selenium :
101112 needs :
@@ -120,6 +131,9 @@ jobs:
120131 - run : python -m pip install -e .[test]
121132 - run : python -m pytest -m selenium
122133 - uses : codecov/codecov-action@v4
134+ with :
135+ token : ${{ secrets.CODECOV_TOKEN }}
136+ flags : selenium
123137
124138
125139 analyze :
0 commit comments