Skip to content

Commit f1594b2

Browse files
authored
Add sonarqube workflow (#578)
1 parent 0d92455 commit f1594b2

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

.github/workflows/sonarqube.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
jobs:
11+
build:
12+
name: Build and analyze
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
19+
- uses: sonarsource/sonarqube-scan-action@v4
20+
env:
21+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
22+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

sonar-project.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sonar.projectKey=tslearn
2+
sonar.python.coverage.reportPaths=coverage.xml
3+
sonar.sources=tslearn
4+
sonar.tests=tslearn/tests
5+
sonar.exclusions=tslearn/tests/**

tslearn/datasets/ucr_uea.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ def __init__(self, use_cache=True):
5050
os.makedirs(self._data_dir, exist_ok=True)
5151

5252
try:
53-
url_multivariate = ("http://www.timeseriesclassification.com/aeon-toolkit/Archives/"
53+
url_multivariate = ("https://www.timeseriesclassification.com/aeon-toolkit/Archives/"
5454
"summaryMultivariate.csv")
5555
self._list_multivariate_filename = os.path.join(
5656
self._data_dir, os.path.basename(url_multivariate)
5757
)
5858
urlretrieve(url_multivariate, self._list_multivariate_filename)
5959

60-
url_univariate = ("http://www.timeseriesclassification.com/aeon-toolkit/Archives/"
60+
url_univariate = ("https://www.timeseriesclassification.com/aeon-toolkit/Archives/"
6161
"summaryUnivariate.csv")
6262
self._list_univariate_filename = os.path.join(
6363
self._data_dir, os.path.basename(url_univariate))

0 commit comments

Comments
 (0)