This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/develop by this push:
new 057d0149 Adding gitattributes file to unify the line break (#130)
057d0149 is described below
commit 057d01494f07d0692f3fc859e61d6fa86faffc61
Author: Haonan <[email protected]>
AuthorDate: Thu Jun 20 00:04:32 2024 +0800
Adding gitattributes file to unify the line break (#130)
---
.gitattributes | 18 ++++++++++++++++++
.github/workflows/unit-test.yml | 13 ++-----------
2 files changed, 20 insertions(+), 11 deletions(-)
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..7497efbe
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+* text=auto eol=lf
diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml
index f8d79fed..afc521f8 100644
--- a/.github/workflows/unit-test.yml
+++ b/.github/workflows/unit-test.yml
@@ -39,15 +39,6 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- # On windows Git checks out files with the windows line-break \n\r per
default.
- # This makes spotless fail. We therefore need to configure Windows
systems to
- # check out the code in the default linux (\n) format.
- - name: Configure unix line breaks on Windows machines
- if: ${{ matrix.os == 'windows-latest'}}
- shell: bash
- run: |
- git config --system core.autocrlf false
- git config --system core.eol lf
- name: Checkout repository
uses: actions/checkout@v4
@@ -81,12 +72,12 @@ jobs:
} else {
core.setOutput('platform_suffix', ``)
}
-
+
- name: Install python packages
if: ${{ matrix.os == 'ubuntu-latest'}}
run: pip3 install cython pandas numpy
-
+
# Run the actual maven build including all unit- and integration-tests.
- name: Build and test with Maven (All others)
shell: bash