Skip to content

Get started with top level documentation and implement little features to make example code nicer. #131

Get started with top level documentation and implement little features to make example code nicer.

Get started with top level documentation and implement little features to make example code nicer. #131

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
paths-ignore:
- "docs/**"
jobs:
lint:
name: Pre-commit Checks
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/[email protected]
with:
environments: py310
- name: Linting - Run pre-commit checks
run: pixi run postinstall && pixi run pre-commit run
test:
name: pytest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
environment:
- py310
- py311
- py312
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/[email protected]
with:
environments: ${{ matrix.environment }}
- name: Start Docker Compose
uses: isbang/compose-action@e5813a5909aca4ae36058edae58f6e52b9c971f8
with:
compose-file: docker-compose.yaml
- name: Install Microsoft ODBC
run: sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
- name: Wait for Docker Servers
run: |
until bash ./.github/scripts/docker_compose_ready.sh; do
sleep 1
done
- name: Run tests
env:
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
run: |
pixi run -e ${{ matrix.environment }} pytest tests -ra ${RUNNER_DEBUG:+-v} --color=yes --postgres --mssql