pre-commit #75
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: Tests | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
branches: | |
- '**' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
branches: | |
- '**' | |
jobs: | |
lint: | |
name: Pre-commit Checks | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Install Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Linting - Run pre-commit checks | |
uses: pre-commit/[email protected] | |
test: | |
name: pytest | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
environment: | |
- py39 | |
- py310 | |
- py311 | |
- py312ibmdb | |
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 --workers=4 --postgres --mssql | |