-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (44 loc) · 1.33 KB
/
coveralls.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
# django-mcadmin
# .github/workflows/coveralls.yml
name: "coveralls"
on:
workflow_dispatch:
workflow_call:
env:
NAME: "mcadmin"
DEFAULT_PYTHON_VERSION: "3.10"
jobs:
coveralls:
name: "coveralls"
runs-on: "ubuntu-latest"
steps:
- name: "Git clone"
id: "git-clone"
uses: "actions/checkout@v2"
- name: "Set up Python ${{ env.DEFAULT_PYTHON_VERSION }}"
id: "set-up-python"
uses: "actions/setup-python@v2"
with:
python-version: "${{ env.DEFAULT_PYTHON_VERSION }}"
- name: "Pip cache"
id: "pip-cache"
uses: "actions/cache@v2"
with:
path: "~/.cache/pip"
key: "${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}"
restore-keys: |
"${{ runner.os }}-pip-"
- name: "Temporarily save coverage statistics"
id: "temporarily-save-coverage-statistics"
uses: "actions/cache@v2"
with:
path: ".coverage"
key: ".coverage-${{ github.run_id }}-${{ github.run_number }}"
- name: "Install requirements"
id: "install-requirements"
run: "make install"
- name: "Upload coverage report to Coveralls"
id: "upload-coverage-report-to-coveralls"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: "coveralls --service=github"