-
Notifications
You must be signed in to change notification settings - Fork 17
69 lines (64 loc) · 2.06 KB
/
drip-django.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
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
59
60
61
62
63
64
65
66
67
68
69
name: Django Drip Campaigns
"on":
- push
- pull_request
jobs:
build:
strategy:
matrix:
include:
- python-version: "3.8"
django-version: "4.2"
- python-version: "3.8"
django-version: "5.0"
- python-version: "3.9"
django-version: "4.2"
- python-version: "3.9"
django-version: "5.0"
- python-version: "3.10"
django-version: "4.2"
- python-version: "3.10"
django-version: "5.0"
- python-version: "3.11"
django-version: "4.2"
- python-version: "3.11"
django-version: "5.0"
- python-version: "3.12"
django-version: "4.2"
- python-version: "3.12"
django-version: "5.0"
runs-on: macos-14
env:
CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}"
steps:
- uses: actions/checkout@v2
- name: "Set up Python version ${{ matrix.python-version }}"
uses: actions/setup-python@v2
with:
python-version: "${{ matrix.python-version }}"
- name: Installing resources
run: |
pip install --upgrade pip==20.0.2
pip install pipenv
- name: Installing requirements pipenv
run: |
pipenv install --dev
- name: "Installing Django version ${{ matrix.django-version }}"
run: |
pip install Django==${{ matrix.django-version }}
- name: Running tests
run: |
pipenv run coverage run -m pytest --ds=testsettings
- name: Checking coverage
run: |
pipenv run coverage report --fail-under=90 -m
pipenv run coverage xml
- name: Setup Code Climate test-reporter
run: >
curl -L
https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
./cc-test-reporter after-build --coverage-input-type coverage.py
--exit-code $?