-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 811 Bytes
/
python-ci.yaml
File metadata and controls
41 lines (33 loc) · 811 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
40
41
name: python-ci
on:
push:
branches:
- '**'
tags:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Setup dependencies
run: |
pip3 install poetry
make install
cp .env_example .env
- name: Check migrations
run: make check-migrations
- name: Tests
run: make test
env:
SECRET_KEY: ${{ secrets.DJANGO_SECRET }}
- name: Lint
run: make lint
- name: Upload coverage to Codecov
uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: make coverage