]> git.proxmox.com Git - ceph.git/blob - ceph/src/arrow/.github/workflows/r-without-arrow.yml
import quincy 17.2.0
[ceph.git] / ceph / src / arrow / .github / workflows / r-without-arrow.yml
1 # Licensed to the Apache Software Foundation (ASF) under one
2 # or more contributor license agreements. See the NOTICE file
3 # distributed with this work for additional information
4 # regarding copyright ownership. The ASF licenses this file
5 # to you under the Apache License, Version 2.0 (the
6 # "License"); you may not use this file except in compliance
7 # with the License. You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing,
12 # software distributed under the License is distributed on an
13 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 # KIND, either express or implied. See the License for the
15 # specific language governing permissions and limitations
16 # under the License.
17
18 name: R without Arrow
19
20 on:
21 push:
22 paths:
23 - ".github/workflows/r-without-arrow.yml"
24 - "r/src/**"
25 pull_request:
26 paths:
27 - ".github/workflows/r-without-arrow.yml"
28 - "r/src/**"
29
30 concurrency:
31 group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
32 cancel-in-progress: true
33
34 env:
35 DOCKER_VOLUME_PREFIX: ".docker/"
36 ARCHERY_DOCKER_USER: ${{ secrets.DOCKERHUB_USER }}
37 ARCHERY_DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
38
39 jobs:
40 bundled:
41 name: "R package without arrow"
42 runs-on: ubuntu-latest
43 if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
44 timeout-minutes: 60
45 strategy:
46 fail-fast: false
47 env:
48 R_ORG: rhub
49 R_IMAGE: ubuntu-gcc-release
50 R_TAG: latest
51 steps:
52 - name: Checkout Arrow
53 uses: actions/checkout@v2
54 with:
55 fetch-depth: 0
56 - name: Fetch Submodules and Tags
57 run: ci/scripts/util_checkout.sh
58 - name: Free Up Disk Space
59 run: ci/scripts/util_cleanup.sh
60 - name: Cache Docker Volumes
61 uses: actions/cache@v2
62 with:
63 path: .docker
64 key: ubuntu-gcc-release-r-${{ hashFiles('cpp/**') }}
65 restore-keys: ubuntu-gcc-release-r-
66 - name: Setup Python
67 uses: actions/setup-python@v1
68 with:
69 python-version: 3.8
70 - name: Setup Archery
71 run: pip install -e dev/archery[docker]
72 - name: Execute Docker Build
73 run: |
74 sudo sysctl -w kernel.core_pattern="core.%e.%p"
75 ulimit -c unlimited
76 archery docker run -e LIBARROW_DOWNLOAD=FALSE -e LIBARROW_BUILD=FALSE -e TEST_R_WITHOUT_LIBARROW=TRUE -e NOT_CRAN=FALSE r
77 - name: Dump install logs
78 run: cat r/check/arrow.Rcheck/00install.out
79 if: always()
80 - name: Dump test logs
81 run: cat r/check/arrow.Rcheck/tests/testthat.Rout*
82 if: always()
83 - name: Save the test output
84 if: always()
85 uses: actions/upload-artifact@v2
86 with:
87 name: test-output
88 path: r/check/arrow.Rcheck/tests/testthat.Rout*
89 - name: Docker Push
90 if: success() && github.event_name == 'push' && github.repository == 'apache/arrow'
91 continue-on-error: true
92 run: archery docker push r