mirror of
https://github.com/Doctorado-ML/mufs.git
synced 2025-08-23 19:45:52 +00:00
Compare commits
6 Commits
v0.1.3
...
add_versio
Author | SHA1 | Date | |
---|---|---|---|
f85ae33e40
|
|||
971314c5ed
|
|||
95a3df360e
|
|||
d610f86483
|
|||
f313032b98
|
|||
4ef1e937de
|
23
.github/workflows/build.yml
vendored
Normal file
23
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: sonarsource/sonarqube-scan-action@master
|
||||||
|
env:
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
|
# If you wish to fail your job when the Quality Gate is red, uncomment the
|
||||||
|
# following lines. This would typically be used to fail a deployment.
|
||||||
|
- uses: sonarsource/sonarqube-quality-gate-action@master
|
||||||
|
timeout-minutes: 5
|
||||||
|
env:
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
35
.github/workflows/main.yml
vendored
35
.github/workflows/main.yml
vendored
@@ -12,13 +12,11 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [macos-latest, ubuntu-latest]
|
||||||
python: ["3.10"]
|
python: [3.8, "3.10"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Set up Python ${{ matrix.python }}
|
- name: Set up Python ${{ matrix.python }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
@@ -30,35 +28,12 @@ jobs:
|
|||||||
pip install -q numpy
|
pip install -q numpy
|
||||||
pip install -q git+https://github.com/doctorado-ml/mdlp
|
pip install -q git+https://github.com/doctorado-ml/mdlp
|
||||||
pip install -q -r requirements/dev.txt
|
pip install -q -r requirements/dev.txt
|
||||||
pip install -q --upgrade codecov coverage black flake8 codacy-coverage unittest-xml-reporting
|
pip install -q --upgrade codecov coverage black flake8 codacy-coverage
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
black --check --diff mufs
|
black --check --diff mufs
|
||||||
flake8 --count mufs
|
flake8 --count mufs
|
||||||
- name: Tests & coverage
|
- name: Tests & coverage
|
||||||
run: |
|
run: |
|
||||||
mkdir .report
|
coverage run -m unittest -v mufs.tests
|
||||||
coverage run -m xmlrunner -v mufs.tests -o .report
|
|
||||||
coverage xml -i -o .report/coverage.xml
|
|
||||||
coverage report -m --fail-under=100
|
coverage report -m --fail-under=100
|
||||||
- name: Get project version
|
|
||||||
run: echo "project_version=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
|
||||||
- name: Override Coverage Source Path for Sonar
|
|
||||||
run: sed -i 's/\/home\/runner\/work\/mufs\/mufs\//\/github\/workspace\//g' .report/coverage.xml
|
|
||||||
- name: SonarQube scanner
|
|
||||||
uses: sonarsource/sonarqube-scan-action@master
|
|
||||||
env:
|
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
||||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
|
||||||
with:
|
|
||||||
args: >
|
|
||||||
-Dsonar.projectVersion=${{ env.project_version }}
|
|
||||||
-Dsonar.python.coverage.reportPaths=.report/coverage.xml
|
|
||||||
-Dsonar.python.xunit.reportPath=.report/TEST*
|
|
||||||
# If you wish to fail your job when the Quality Gate is red, uncomment the
|
|
||||||
# following lines. This would typically be used to fail a deployment.
|
|
||||||
- name: Quality Gate
|
|
||||||
uses: sonarsource/sonarqube-quality-gate-action@master
|
|
||||||
timeout-minutes: 5
|
|
||||||
env:
|
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/ambv/black
|
- repo: https://github.com/ambv/black
|
||||||
rev: 22.3.0
|
rev: 20.8b1
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
exclude: ".virtual_documents"
|
exclude: ".virtual_documents"
|
||||||
language_version: python3.8
|
language_version: python3.8
|
||||||
- repo: https://gitlab.com/pycqa/flake8
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
rev: 3.9.2
|
rev: 3.8.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
exclude: ".virtual_documents"
|
exclude: ".virtual_documents"
|
||||||
@@ -16,7 +16,7 @@ repos:
|
|||||||
# - id: mypy
|
# - id: mypy
|
||||||
# # args: [--strict, --ignore-missing-imports]
|
# # args: [--strict, --ignore-missing-imports]
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.2.0
|
rev: v3.4.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
[](https://www.codacy.com/gh/Doctorado-ML/mufs/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Doctorado-ML/mufs&utm_campaign=Badge_Grade)
|
[](https://www.codacy.com/gh/Doctorado-ML/mufs/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Doctorado-ML/mufs&utm_campaign=Badge_Grade)
|
||||||
[](https://lgtm.com/projects/g/Doctorado-ML/mufs/context:python)
|
[](https://lgtm.com/projects/g/Doctorado-ML/mufs/context:python)
|
||||||
[](https://badge.fury.io/py/MUFS)
|
[](https://badge.fury.io/py/MUFS)
|
||||||
[](https://haystack.rmontanana.es:25000/dashboard?id=mufs)
|
|
||||||
[](https://haystack.rmontanana.es:25000/dashboard?id=mufs)
|
|
||||||

|

|
||||||
|
[](http://haystack.local:25000/dashboard?id=mufs)
|
||||||
|
[](http://haystack.local:25000/dashboard?id=mufs)
|
||||||
|
|
||||||
# MUFS
|
# MUFS
|
||||||
|
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
-r production.txt
|
-r production.txt
|
||||||
mdlp
|
mdlp
|
||||||
pandas
|
pandas
|
||||||
|
@@ -1,4 +1 @@
|
|||||||
sonar.projectKey=mufs
|
sonar.projectKey=mufs
|
||||||
sonar.sourceEncoding=UTF-8
|
|
||||||
sonar.sources=.
|
|
||||||
sonar.python.version=3.8, 3.9, 3.10
|
|
Reference in New Issue
Block a user