-
Notifications
You must be signed in to change notification settings - Fork 28
52 lines (37 loc) · 1.2 KB
/
build.yaml
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
name: Python tests and Node.js build
on: [push, pull_request]
jobs:
build-python:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- uses: snok/[email protected]
- name: Install all extra features of poetry
run: poetry install --extras "dev"
- name: Test with pytest
run: poetry run pytest
build-node:
env:
# Webpack uses around 2GB to build, which is more than the default heap size. We bump it to 4 GB here just in case
NODE_OPTIONS: "--max-old-space-size=4096"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Test build
run: npm run build