forked from fga-eps-mds/MeasureSoftGram-Core
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.32 KB
/
test.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
47
48
49
50
51
52
53
name: Rodar Testes
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: pip
- name: Instalar requirements
run: pip install -r requirements.txt
- name: Instalar tox
run: pip install tox
- name: Rodar testes
run: tox
- name: Corrige reports path
run: |
sed -i 's/<source>\/home\/runner\/work\/2024.1-MeasureSoftGram-Core\/2024.1-MeasureSoftGram-Core<\/source>/<source>\/github\/workspace<\/source>/g' coverage.xml
- name: Scanner do SonarCloud
uses: SonarSource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Envia cobertura para o Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests
name: 2024.1-MeasureSoftGram-Core
verbose: true