-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (31 loc) · 1.01 KB
/
push-actions.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
name: push-actions
on: [push]
jobs:
check-files:
name: "Check Files"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: pip install -r deploy/docker/development-server/hook-requirements.txt
- run: isort --check-only .
- run: black --check --diff .
- run: flake8 --config setup.cfg .
- run: mypy .
- run: find . -type f -name *.sh | xargs shellcheck
run-django-tests:
name: "Tests in K8s"
runs-on: ubuntu-latest
steps:
- name: Install Microk8s
uses: balchua/[email protected]
with:
channel: 'latest/stable'
addons: '["helm3", "dns", "storage", "registry", "host-access", "ingress"]'
- name: Checkout code
uses: actions/checkout@v2
- name: Install charts
run: sg microk8s -c './dev.sh start'
- name: Wait for full startup
run: kubectl -n development wait --for=condition=ready pod -l tier=server
- name: Run tests
run: sg microk8s -c './dev.sh test'