-
Notifications
You must be signed in to change notification settings - Fork 83
53 lines (46 loc) · 1.26 KB
/
test.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
name: Tests
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
test-python:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.7", "3.8", "3.9"]
steps:
- uses: actions/checkout@v2
- name: Install NPM and dependencies
uses: actions/setup-node@v2
with:
node-version: '12.x'
- name: Build client
run: |
npm install --prefix ./longclaw/client
npm run build --prefix ./longclaw/client
- name: Upload client
uses: actions/upload-artifact@v2
with:
name: client
path: ./longclaw/core/static/core/js
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Download client
uses: actions/download-artifact@v2
with:
name: client
path: ./longclaw/core/static/core/js
- name: Test with tox
run: tox