Debian Codegraph @

.github/workflows/integration.yml

raw
1 name: continuous-integration
2
3 on:
4 push:
5 pull_request:
6 workflow_call:
7
8 jobs:
9
10 pre-commit:
11
12 runs-on: ubuntu-latest
13
14 steps:
15 - uses: actions/checkout@v3
16 - name: Set up Python
17 uses: actions/setup-python@v4
18 with:
19 python-version: "3.x"
20 - name: Install dependencies
21 run: |
22 python -m pip install --upgrade pip
23 git submodule update --init
24 pip install -e .[code_style]
25 - name: Run pre-commit
26 run: |
27 pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
28
29
30 test_js:
31
32 runs-on: ubuntu-latest
33
34 strategy:
35 matrix:
36 node-version: [12.x]
37
38 steps:
39 - uses: actions/checkout@v3
40 - name: Use Node.js ${{ matrix.node-version }}
41 uses: actions/setup-node@v3
42 with:
43 node-version: ${{ matrix.node-version }}
44 - run: npm ci
45 - run: npm test
46 env:
47 CI: true
48
49 docs:
50
51 runs-on: ubuntu-latest
52 strategy:
53 matrix:
54 python-version: ["3.7", "3.8", "3.9", "3.10"]
55
56 steps:
57 - uses: actions/checkout@v3
58 - name: Set up Python ${{ matrix.python-version }}
59 uses: actions/setup-python@v4
60 with:
61 python-version: ${{ matrix.python-version }}
62 - name: Install dependencies
63 run: |
64 python -m pip install --upgrade pip
65 git submodule update --init
66 pip install -e .[rtd]
67
68 - name: Build docs
69 run: |
70 cd docs
71 make html