feat: Qdrant RAG Storage #1042
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
pull_request: | |
paths: | |
- ".github/**" | |
- "ragna/**" | |
- "tests/**" | |
- "environment-dev.yml" | |
- "pyproject.toml" | |
push: | |
branches: | |
- release/* | |
jobs: | |
importable: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -elo pipefail {0} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup environment | |
uses: ./.github/actions/setup-env | |
with: | |
optional-dependencies: "false" | |
- name: Check if all public packages are importable | |
run: python tests/test_importable.py | |
pytest: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
python-version: ["3.10"] | |
include: | |
- os: ubuntu-latest | |
python-version: "3.11" | |
- os: ubuntu-latest | |
python-version: "3.12" | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -elo pipefail {0} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup environment | |
uses: ./.github/actions/setup-env | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run unit tests | |
id: tests | |
run: | | |
pytest \ | |
--ignore tests/deploy/ui \ | |
--junit-xml=test-results.xml \ | |
--durations=25 | |
- name: Surface failing tests | |
if: steps.tests.outcome != 'success' | |
uses: pmeier/[email protected] | |
with: | |
path: test-results.xml | |
# pytest-ui: | |
# strategy: | |
# matrix: | |
# os: | |
# - ubuntu-latest | |
# - windows-latest | |
# - macos-latest | |
# browser: | |
# - chromium | |
# - firefox | |
# python-version: | |
# - "3.10" | |
# - "3.10" | |
# - "3.12" | |
# exclude: | |
# - python-version: "3.11" | |
# os: windows-latest | |
# - python-version: "3.12" | |
# os: windows-latest | |
# - python-version: "3.11" | |
# os: macos-latest | |
# - python-version: "3.12" | |
# os: macos-latest | |
# include: | |
# - browser: webkit | |
# os: macos-latest | |
# python-version: "3.10" | |
# | |
# fail-fast: false | |
# | |
# runs-on: ${{ matrix.os }} | |
# | |
# defaults: | |
# run: | |
# shell: bash -elo pipefail {0} | |
# | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v4 | |
# with: | |
# fetch-depth: 0 | |
# | |
# - name: Setup environment | |
# uses: ./.github/actions/setup-env | |
# with: | |
# python-version: ${{ matrix.python-version }} | |
# | |
# - name: Run unit tests | |
# id: tests | |
# run: | | |
# pytest tests/deploy/ui \ | |
# --browser ${{ matrix.browser }} \ | |
# --video=retain-on-failure | |
# | |
# - name: Upload playwright video | |
# if: failure() | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: | |
# playwright-${{ matrix.os }}-${{ matrix.python-version}}-${{ github.run_id }} | |
# path: test-results |