Skip to content

fix add pattern for partial splits when removing old duckb index file… #2

fix add pattern for partial splits when removing old duckb index file…

fix add pattern for partial splits when removing old duckb index file… #2

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0
# Copyright 2022 The HuggingFace Authors.
name: Check openapi specification
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "docs/source/openapi.json"
- ".github/workflows/openapi.yml"
pull_request:
paths:
- "docs/source/openapi.json"
- ".github/workflows/openapi.yml"
env:
python-version: 3.9.18
poetry-version: "1.4.2"
# required to get access to use a cached poetry venv in "/home/runner/.cache/pypoetry/virtualenvs"
POETRY_VIRTUALENVS_IN_PROJECT: false
working-directory: e2e
jobs:
check-openapi-spec:
defaults:
run:
shell: bash
working-directory: e2e
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry==${{ env.poetry-version }}
- name: Use Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.python-version }}
cache: "poetry"
cache-dependency-path: |
${{ env.working-directory }}/poetry.lock
- name: Install dependencies
run: |
poetry env use "${{ env.python-version }}"
poetry install
- name: Check openapi spec
run: |
poetry run python -m openapi_spec_validator ../docs/source/openapi.json