|
| 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: Dev ADBC |
| 19 | + |
| 20 | +on: |
| 21 | + pull_request: |
| 22 | + branches: |
| 23 | + - main |
| 24 | + paths: |
| 25 | + - "dev/**" |
| 26 | + - ".github/workflows/dev_adbc.yml" |
| 27 | + push: |
| 28 | + paths: |
| 29 | + - "dev/**" |
| 30 | + - ".github/workflows/dev_adbc.yml" |
| 31 | + |
| 32 | +concurrency: |
| 33 | + group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }} |
| 34 | + cancel-in-progress: true |
| 35 | + |
| 36 | +permissions: |
| 37 | + contents: read |
| 38 | + |
| 39 | +defaults: |
| 40 | + run: |
| 41 | + shell: bash -l -eo pipefail {0} |
| 42 | + |
| 43 | +jobs: |
| 44 | + pre-commit: |
| 45 | + name: "pre-commit" |
| 46 | + runs-on: ubuntu-latest |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@v4 |
| 49 | + with: |
| 50 | + fetch-depth: 0 |
| 51 | + persist-credentials: false |
| 52 | + |
| 53 | + - name: Cache Conda |
| 54 | + uses: actions/cache@v4 |
| 55 | + with: |
| 56 | + path: ~/conda_pkgs_dir |
| 57 | + key: conda-${{ runner.os }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/**') }} |
| 58 | + - uses: conda-incubator/setup-miniconda@v3 |
| 59 | + with: |
| 60 | + miniforge-version: latest |
| 61 | + use-only-tar-bz2: false |
| 62 | + use-mamba: true |
| 63 | + |
| 64 | + - name: Install Dependencies |
| 65 | + run: | |
| 66 | + mamba install -c conda-forge \ |
| 67 | + --file ci/conda_env_dev.txt \ |
| 68 | + pytest |
| 69 | +
|
| 70 | + - name: Test |
| 71 | + run: | |
| 72 | + pytest -vv dev/adbc_dev/ |
0 commit comments