CI - pull_request - mikealfare #2317
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: ci | ||
run-name: "CI - ${{ github.event_name }} - ${{ github.actor }}" | ||
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' | ||
- uses: pre-commit/[email protected] | ||
unit_test: | ||
name: 'Unit tests with coverage' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | ||
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: ./dbt-athena |