This is an automated email from the ASF dual-hosted git repository. haonan pushed a commit to branch add_gitattributes in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 563a1cee195aaed1cbd913f57546aee24c4ac232 Author: HTHou <[email protected]> AuthorDate: Wed Jun 19 21:42:10 2024 +0800 Adding gitattributes file to unify the line break --- .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
