-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.32 KB
/
main.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
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
build:
name: Code Climate Coverage Action
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2.3.2
with:
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
python-version: 3.10.2
# Used to specify a package manager for caching in the default directory. Supported values: pip, pipenv.
cache: pip
- run: pip install -r requirements.txt
- uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
API_TOKENS: '["hello", "phat"]'
DB_URL: "sqlite:///./test.db"
DEFAULT_SCORE: 750
with:
coverageCommand: pytest --cov=api --cov-report=xml
debug: true
# coverageLocations: |
# ${{github.workspace}}/.coverage:coverage.py