-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (51 loc) · 1.56 KB
/
ci.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
name: CI
on:
push:
branches:
- main
- "renovate/**"
pull_request:
jobs:
test_js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: nvm
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
- uses: actions/setup-node@v2-beta
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-
- run: npm install --no-optional --no-audit --no-fund --progress=false
- run: npm run lint
- run: npm run build
test_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ hashFiles('**/requirements.txt', '**/setup.py') }}
restore-keys: |
${{ runner.os }}-
- run: pip install -r requirements.txt coveralls==3.0.1
- run: make test-coverage
- run: coveralls || true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: make lint
- run: make sdist
- run: python manage.py makemigrations --check
- run: python manage.py migrate --no-input
- run: python manage.py flush --no-input
- run: python manage.py loaddata fixtures/demo_data.json