[go: nahoru, domu]

Skip to content

Adapt hdfs_artifact_repo to new pyarrow HdfsFileSystem interface #14177

Adapt hdfs_artifact_repo to new pyarrow HdfsFileSystem interface

Adapt hdfs_artifact_repo to new pyarrow HdfsFileSystem interface #14177

Workflow file for this run

name: ⛩ Gateway ⛩
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
push:
branches:
- master
- branch-[0-9]+.[0-9]+
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash --noprofile --norc -exo pipefail {0}
env:
PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu
jobs:
gateway:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/untracked
- uses: ./.github/actions/setup-python
- name: Install dependencies
run: |
pip install .[gateway] \
pytest pytest-timeout pytest-asyncio \
httpx psutil sentence-transformers transformers torchvision openai databricks-sdk
# Ensure pydantic v2 is installed
pip freeze | tail -n +1 | grep -q '^pydantic==2\.'
- name: Run tests with pydantic v2
run: |
pytest tests/gateway
- name: Downgrade pydantic to v1
run: |
pip install 'pydantic<2.0'
# Ensure pydantic v1 is installed
pip freeze | tail -n +1 | grep -q '^pydantic==1\.'
- name: Run tests with pydantic v1
run: |
pytest tests/gateway