You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by we...@apache.org on 2021/08/12 22:28:48 UTC

[arrow-cookbook] branch main updated: Move tests into implementation-specific folders and workflows (#32)

This is an automated email from the ASF dual-hosted git repository.

westonpace pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-cookbook.git


The following commit(s) were added to refs/heads/main by this push:
     new f4e5a81  Move tests into implementation-specific folders and workflows (#32)
f4e5a81 is described below

commit f4e5a81f5f20fa9b301e42e8f8351401072eb245
Author: Nic <th...@gmail.com>
AuthorDate: Thu Aug 12 22:28:43 2021 +0000

    Move tests into implementation-specific folders and workflows (#32)
    
    * Move tests into implementation-specific folders and workflows
    
    * Move workflows up a level so they run
    
    * Improve naming
    
    * Disallow multiple concurrent jobs
    
    * Prevent concurrency
    
    * Check concurrency change
---
 .github/workflows/test_cookbooks.yml       | 23 --------------
 .github/workflows/test_python_cookbook.yml | 44 +++++++++++++++++++++++++++
 .github/workflows/test_r_cookbook.yml      | 48 ++++++++++++++++++++++++++++++
 3 files changed, 92 insertions(+), 23 deletions(-)

diff --git a/.github/workflows/test_cookbooks.yml b/.github/workflows/test_cookbooks.yml
deleted file mode 100644
index 7ab3557..0000000
--- a/.github/workflows/test_cookbooks.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-on:
-  pull_request:
-    branches:
-       - main
-
-name: Test Cookbooks
-
-jobs:
-  test_cookbooks:
-    name: test
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v1
-      - name: Setup R
-        uses: r-lib/actions/setup-r@v1
-      - name: Setup pandoc
-        uses: r-lib/actions/setup-pandoc@v1
-      - name: Install dependencies
-        run: sudo apt install libcurl4-openssl-dev libssl-dev python3-pip
-      - name: Run tests
-        run: make test
-      - name: Build cookbooks
-        run: make all
diff --git a/.github/workflows/test_python_cookbook.yml b/.github/workflows/test_python_cookbook.yml
new file mode 100644
index 0000000..b8ac338
--- /dev/null
+++ b/.github/workflows/test_python_cookbook.yml
@@ -0,0 +1,44 @@
+# 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.
+
+name: Test Python Cookbook
+
+on:
+  pull_request:
+    branches:
+       - main
+    paths:
+     - "python/**"
+     - ".github/workflows/test_python_cookbook.yml"
+     
+concurrency:
+  group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
+  cancel-in-progress: true
+
+jobs:
+  test_py:
+    name: "Test Python Cookbook"
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v1
+      - name: Install dependencies
+        run: sudo apt install libcurl4-openssl-dev libssl-dev python3-pip
+      - name: Run tests
+        run: make pytest
+      - name: Build cookbook
+        run: make py
+
diff --git a/.github/workflows/test_r_cookbook.yml b/.github/workflows/test_r_cookbook.yml
new file mode 100644
index 0000000..af1ac3a
--- /dev/null
+++ b/.github/workflows/test_r_cookbook.yml
@@ -0,0 +1,48 @@
+# 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.
+
+name: Test R Cookbook
+
+on:
+  pull_request:
+    branches:
+       - main
+    paths:
+     - "r/**"
+     - ".github/workflows/test_r_cookbook.yml"
+
+concurrency:
+  group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
+  cancel-in-progress: true
+
+jobs:
+  test_r:
+    name: "Test R Cookbook"
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v1
+      - name: Setup R
+        uses: r-lib/actions/setup-r@v1
+      - name: Setup pandoc
+        uses: r-lib/actions/setup-pandoc@v1
+      - name: Install dependencies
+        run: sudo apt install libcurl4-openssl-dev libssl-dev
+      - name: Run tests
+        run: make rtest
+      - name: Build cookbooks
+        run: make r
+