haystack/.github/workflows/imports.yml
ZanSara 809ca73649
fix: make langdetect truly optional (#4686)
* make al langdetect imports optional

* add workflow

* fix workflow triggers

* change extra name
2023-04-17 11:35:53 +02:00

42 lines
726 B
YAML

name: Dependency checker
on:
push:
branches:
- main
# release branches have the form v1.9.x
- 'v[0-9].*[0-9].x'
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
paths:
- "**.py"
- "pyproject.toml"
- "!.github/**/*.py"
- "!rest_api/**/*.py"
- "!test/*"
env:
PYTHON_VERSION: "3.8"
jobs:
base-install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Haystack with no extras
run: pip install .
- name: Try to import
run: python -c 'import haystack'