Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- 'nodejs/**'
- .github/workflows/node.yml
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- 'nodejs/**'
- .github/workflows/node.yml

jobs:
build:
permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16, 18, 20]
node-version: [ 20, 22, 24 ]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: cd nodejs; npm ci
- run: cd nodejs; node test.js dump verbose
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: cd nodejs && npm install
- name: Run tests
run: cd nodejs && npm run test:verbose
53 changes: 31 additions & 22 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,50 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- 'python/**'
- .github/workflows/python.yml
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- 'python/**'
- .github/workflows/python.yml

jobs:
build:
permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ['3.7', '3.8', '3.9']
python-version: [
'3.10',
'3.11',
'3.12',
'3.13',
'3.14',
]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black nose
cd python; pip install -r requirements.txt
- name: Reformat
run: |
cd python; black --check .
- name: Run tests
run: |
cd python; nosetests
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black tox tox-gh
cd python && pip install -r requirements.txt
- name: Run tests
run: cd python && tox
env:
TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }}
- name: Check formatting
run: cd python && black --check .
16 changes: 0 additions & 16 deletions nodejs/package-lock.json

This file was deleted.

5 changes: 3 additions & 2 deletions nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
"license": "MIT",
"main": "./ece.js",
"scripts": {
"test": "node ./test.js"
"test": "node ./test.js",
"test:verbose": "node ./test.js dump verbose"
},
"engines": {
"node": ">=16"
"node": ">=20"
}
}
13 changes: 12 additions & 1 deletion python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@
# and then run "tox" from this directory.

[tox]
envlist = py27,py34,py35,py38,py39,py310,py311,py312
envlist = py27,py34,py35,py38,py39,py310,py311,py312,py313,py314

[gh]
; Github Action
python =
3.10 = py310
3.11 = py311
3.12 = py312
3.13 = py313
3.14 = py314

[testenv]
basepython =
Expand All @@ -16,6 +25,8 @@ basepython =
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13
py314: python3.14
commands =
pytest \
[]
Expand Down