Skip to content

Merge pull request #1 from dpguthrie/updates #5

Merge pull request #1 from dpguthrie/updates

Merge pull request #1 from dpguthrie/updates #5

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv and set Python version
uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Lint with ruff
run: |
uv run ruff check .
uv run ruff format --check .
- name: Run tests with coverage
env:
DBT_CLOUD_SERVICE_TOKEN: ${{ secrets.DBT_CLOUD_SERVICE_TOKEN }}
DBT_CLOUD_TOKEN_VALUE: ${{ secrets.DBT_CLOUD_TOKEN_VALUE }}
run: uv run pytest --cov=src --cov-report=xml --cov-report=term-missing