Skip to content

Update release workflow #2323

Update release workflow

Update release workflow #2323

Workflow file for this run

name: ci
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
name: 'Pre-commit checks'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Setup `hatch`"
uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main
with:
python-version: '3.11'
- run: hatch run code-quality
working-directory: ./dbt-athena
- run: hatch run code-quality
working-directory: ./dbt-athena-community
unit_test:
name: 'Unit tests - ${{ matrix.package }} - ${{ matrix.python-version }}'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
package: ['dbt-athena', 'dbt-athena-community']
steps:
- uses: actions/checkout@v3
- name: "Setup `hatch`"
uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main
with:
python-version: ${{ matrix.python-version }}
- name: Test with pytest
run: hatch run unit-tests
working-directory: ./${{ matrix.package }}