-
Notifications
You must be signed in to change notification settings - Fork 37
59 lines (45 loc) · 1.31 KB
/
tests-ci-js.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: 'tests-ci-js'
on:
push:
branches: [ "main", "devel" ]
pull_request:
branches: [ "main", "devel" ]
schedule:
- cron: "13 20 * * 3"
jobs:
tests-ci-js:
strategy:
#fail-fast: true
matrix:
python-version:
- "3.11"
poetry-version:
- "1.4"
node-version:
- "14"
- "19"
os:
- 'ubuntu-latest'
runs-on: '${{ matrix.os }}'
steps:
- uses: actions/checkout@v3
# Install NodeJS
- uses: actions/setup-node@v3
with:
node-version: '${{ matrix.node-version }}'
- name: 'Setting up some node packages'
run: 'npm i debug'
# Poetry & Python are needed to transpile Python library
- uses: actions/setup-python@v4
with:
python-version: '${{ matrix.python-version }}'
- name: 'Set up poetry - Run image'
uses: abatilo/actions-poetry@v2
- name: 'Poetry Install (with buildjslib)'
run: 'poetry install --with buildjslib'
- name: 'Generate pylatexenc JS library'
working-directory: 'js-transcrypt'
run: 'poetry run python ./generate_pylatexenc_js.py --compile-tests'
- name: 'Run JS tests'
working-directory: 'js-transcrypt'
run: 'node test-pylatexenc-js/runtests.js'