-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 921 Bytes
/
ci.yml
File metadata and controls
39 lines (32 loc) · 921 Bytes
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
name: CI
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
env:
SECRET_KEY: continuosintegration
DJANGO_SETTINGS_MODULE: keplerapi.tests.settings
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
cd backend
pip install -r requirements.txt
- name: Install Coveralls
run: |
pip install coveralls
- name: Test with coverage.py
run: |
cd backend/keplerapi
coverage run manage.py test -v 2
- name: Upload report coverage to Coveralls
run: |
cd backend/keplerapi
coveralls