-
Notifications
You must be signed in to change notification settings - Fork 107
58 lines (48 loc) · 1.51 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
54
55
56
57
58
name: Run tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements.dev.txt
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Ensure JS and CSS are up-to-date
run: |
echo "Runnign npm install"
npm install
echo "Running npm run build"
npm run build
- name: Django check
run: python manage.py check --settings=foundation.settings
- name: Ensure migrations are up-to-date
run: |
# show migrations
python manage.py makemigrations --dry-run --verbosity 3
# run manually a migration for plugin
# See https://github.com/django-cms/djangocms-picture/issues/122
python manage.py makemigrations djangocms_picture
# check migrations
python manage.py makemigrations --check
- name: Run tests
run: |
coverage run manage.py test
coverage xml
- name: Check coding standards
run: flake8 .
- name: Upload coverage report to codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml