feat: add udwf (#354) #36
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: ci-test-examples | |
on: | |
push: | |
# Skip the backend suite if all changes are docs | |
paths-ignore: | |
- "docs/**" | |
- "**/*.md" | |
- "**/*.qmd" | |
- "*.md" | |
- "codecov.yml" | |
- ".envrc" | |
branches: | |
- main | |
- master | |
tags: | |
- '*' | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: ["x86_64"] | |
python-version: ["3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: extractions/setup-just@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: download test data | |
run: just download-data | |
- name: start services | |
run: docker compose up --build --wait | |
- name: Rust latest | |
run: rustup update | |
# check how to use virtual environment https://stackoverflow.com/q/74668349/4001592 | |
- name: create virtual environment | |
run: python -m venv .venv | |
- name: install dependencies | |
run: | | |
source .venv/bin/activate | |
python -m pip install pytest maturin | |
- name: develop | |
run: | | |
source .venv/bin/activate | |
python -m maturin develop --extras=examples | |
- name: pytest | |
run: | | |
source .venv/bin/activate | |
python -m pytest --import-mode=importlib python/letsql/tests/test_examples.py -v | |
working-directory: ${{ github.workspace }} | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_HOST: localhost | |
POSTGRES_PORT: 5432 | |
POSTGRES_DATABASE: ibis_testing |