@@ -11,33 +11,45 @@ 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/checkout@v4
2526 - uses : actions/setup-node@v4
2627 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 :
2839 - uses : actions/checkout@v4
29- - id : cache-npm
30- uses : actions/cache@v4
40+ - uses : actions/setup-node@v4
3141 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
3643 - name : Install Node dependencies
3744 run : npm ci
38- - run : npm run lint:js
45+ - run : node --test --experimental-test-coverage --test-reporter=lcov --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
3951
40- lint :
52+ py- lint :
4153 runs-on : ubuntu-latest
4254 strategy :
4355 matrix :
@@ -59,20 +71,19 @@ jobs:
5971
6072 pytest :
6173 needs :
62- - lint
63- - standardjs
74+ - py-lint
6475 - dist
6576 runs-on : ubuntu-latest
6677 strategy :
6778 matrix :
6879 python-version :
69- - " 3.10"
7080 - " 3.11"
7181 - " 3.12"
82+ - " 3.13"
7283 django-version :
73- - " 3.2"
7484 - " 4.2"
7585 - " 5.0"
86+ - " 5.1"
7687 steps :
7788 - uses : actions/checkout@v4
7889 - name : Set up Python ${{ matrix.python-version }}
@@ -90,12 +101,16 @@ jobs:
90101 curl -qO "https://chromedriver.storage.googleapis.com/$(curl -q https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip"
91102 unzip chromedriver_linux64.zip -d bin
92103
93- - run : python -m pip install .[test] codecov
104+ - run : python -m pip install .[test]
94105 - run : python -m pip install django~=${{ matrix.django-version }}.0
95106 - run : python -m pytest -m "not selenium"
96107 env :
97108 PATH : $PATH:$(pwd)/bin
98- - run : codecov
109+ - uses : codecov/codecov-action@v4
110+ with :
111+ token : ${{ secrets.CODECOV_TOKEN }}
112+ flags : python
113+
99114
100115 selenium :
101116 needs :
@@ -120,6 +135,9 @@ jobs:
120135 - run : python -m pip install -e .[test]
121136 - run : python -m pytest -m selenium
122137 - uses : codecov/codecov-action@v4
138+ with :
139+ token : ${{ secrets.CODECOV_TOKEN }}
140+ flags : selenium
123141
124142
125143 analyze :
0 commit comments