-
Notifications
You must be signed in to change notification settings - Fork 64
35 lines (27 loc) · 931 Bytes
/
ci.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
name: "Coverage Deploy to Codacy"
on:
push:
branches:
- master
jobs:
test_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install numpy scipy matplotlib pip nose sphinx==1.4 gpy torch sklearn pytest pytest-cov future
- name: Test with pytest
env:
CODACY_API_TOKEN: ${{ secrets.CODACY_API_TOKEN }}
shell: bash
run: |
python3 -m pytest --cov-report term --cov-report xml:cobertura.xml --cov=ezyrb
curl -s https://coverage.codacy.com/get.sh -o CodacyCoverageReporter.sh
chmod +x CodacyCoverageReporter.sh
./CodacyCoverageReporter.sh report -r cobertura.xml -t $CODACY_API_TOKEN