Skip to content

Commit e0497fd

Browse files
committed
fix: python & javascript tests
1 parent 264fadc commit e0497fd

25 files changed

Lines changed: 8185 additions & 137 deletions

.github/workflows/javascript-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node-version: [20]
16+
node-version: [24]
1717

1818
steps:
1919
- name: Check out repository
@@ -41,7 +41,7 @@ jobs:
4141
sudo apt-get install -y libdbus-glib-1-2 libgtk-3-0 xvfb
4242
4343
- name: Install npm dependencies
44-
run: npm ci
44+
run: npm install
4545

4646
- name: Run tests
47-
run: npm run test:ci || echo "⚠️ Tests skipped — no workspaces available"
47+
run: xvfb-run --auto-servernum npm run test || echo "⚠️ Tests skipped — no workspaces available"

.github/workflows/pypi-publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ jobs:
1717
with:
1818
python-version: 3.12
1919

20+
- name: Set up Node.js
21+
uses: actions/setup-node@v6
22+
with:
23+
node-version: '24'
24+
25+
- name: Build JavaScript bundles
26+
run: |
27+
npm install
28+
npm run build
29+
2030
- name: Install dependencies
2131
run: pip install -r requirements/pip.txt
2232

.github/workflows/python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Run Python Tests and Coverage
1313
runs-on: ubuntu-latest
1414
strategy:
15-
fail-fast: true
15+
fail-fast: false
1616
matrix:
1717
python-version: ["3.11", "3.12"]
1818
toxenv: [quality, docs, django42, django52]

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ __pycache__
2222
/.installed.cfg
2323
/lib
2424
/lib64
25+
node_modules
26+
public
2527

2628
# Installer logs
2729
pip-log.txt
@@ -34,6 +36,7 @@ pip-log.txt
3436
.tox
3537
coverage.xml
3638
htmlcov/
39+
coverage/
3740

3841
# Virtual environments
3942
/venv/

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ include LICENSE.txt
33
include README.rst
44
include requirements/base.in
55
include requirements/constraints.txt
6+
recursive-include xblocks_contrib/public *
67
recursive-include xblocks_contrib *.html *.png *.gif *.js *.css *.jpg *.jpeg *.svg

0 commit comments

Comments
 (0)