@@ -18,34 +18,36 @@ jobs:
1818 name : Unit Testing
1919 strategy :
2020 matrix :
21- node -version : [18, 19, 20 ]
21+ python -version : [3.9, 3.10, 3.11 ]
2222 os : [ubuntu-latest, windows-latest, macos-latest]
2323 exclude :
2424 - os : windows-latest
25- node-version : 18
25+ node-version : 3.9
2626 runs-on : ${{ matrix.os }}
2727
2828 steps :
2929 - name : Checkout Repository
3030 uses : actions/checkout@v5
3131
32- - name : Setup NodeJS Version - ${{ matrix.node -version }}
33- uses :
actions/setup-[email protected] 32+ - name : Setup Puthon Version - ${{ matrix.python -version }}
33+ uses : actions/setup-python@v5
3434 with :
35- node -version : ${{ matrix.node -version }}
35+ python -version : ${{ matrix.python -version }}
3636
3737 - name : Install Dependencies
38- run : npm install
38+ run : |
39+ python -m pip install --upgrade pip
40+ pip install pytest pytest-cov
3941
4042 - name : Unit Testing
41- id : Nodejs -unit-testing-step
42- run : npm test
43+ id : Python -unit-testing-step
44+ run : pytest --junitxml= test-results.xml
4345
4446 - name : Archive Test Result
4547 if : always()
4648 uses : actions/upload-artifact@v4
4749 with :
48- name : Mocha-Test-Result-${{ matrix.os }}-${{ matrix.node -version }}
50+ name : Mocha-Test-Result-${{ matrix.os }}-${{ matrix.python -version }}
4951 path : test-results.xml
5052 retention-days : 1
5153
@@ -59,18 +61,20 @@ jobs:
5961 - name : Checkout Repository
6062 uses : actions/checkout@v5
6163
62- - name : Setup NodeJS
63- uses :
actions/setup-[email protected] 64+ - name : Setup Python
65+ uses : actions/setup-python@v5
6466 with :
65- node -version : 18
67+ python -version : " 3.10 "
6668
6769 - name : Install Dependencies
68- run : npm install
70+ run : |
71+ python -m pip install --upgrade pip
72+ pip install pytest pytest-cov
6973
7074 - name : Run Code Coverage
7175 id : coverage
7276 continue-on-error : true
73- run : npm run coverage
77+ run : pytest --cov=. --cov-report=xml --cov-report=html
7478
7579 - name : Archive Coverage Report
7680 if : always()
0 commit comments