diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 06fc5828..e3a9849e 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -17,4 +17,20 @@ concurrency: jobs: code-quality: - uses: dbt-labs/dbt-adapters/.github/workflows/code-quality.yml@config/release + name: Python 3.8 + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Setup `hatch` + uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@config/release + + - name: Run linters + run: hatch run lint:all + + - name: Run typechecks + run: hatch run typecheck:all diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 4301719d..bc471d08 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -32,7 +32,7 @@ jobs: persist-credentials: false - name: Setup `hatch` - uses: ./.github/actions/setup-hatch + uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@config/release with: python-version: ${{ matrix.python-version }} @@ -53,7 +53,7 @@ jobs: shell: bash - name: Publish results - uses: dbt-labs/dbt-adapters/.github/actions/publish-results.yml@config/release + uses: dbt-labs/dbt-adapters/.github/actions/publish-results@config/release if: always() with: source-file: "results.csv" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c2f076b..ccf805f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,12 +35,12 @@ jobs: persist-credentials: false - name: Setup `hatch` - uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch.yml@main + uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main - name: Build `dbt-postgres` - uses: dbt-labs/dbt-adapters/.github/actions/build-hatch.yml@main + uses: dbt-labs/dbt-adapters/.github/actions/build-hatch@main - name: Publish to PyPI - uses: dbt-labs/dbt-adapters/.github/actions/publish-pypi.yml@main + uses: dbt-labs/dbt-adapters/.github/actions/publish-pypi@main with: pypi-repository-url: ${{ vars.PYPI_REPOSITORY_URL }} diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 4e564c8c..f377cfe7 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -17,4 +17,33 @@ concurrency: jobs: unit: - uses: dbt-labs/dbt-adapters/.github/workflows/unit-tests.yml@config/release + name: Python ${{ matrix.python-version }} + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11"] + + steps: + - name: Check out repository + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Setup `hatch` + uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@config/release + with: + python-version: ${{ matrix.python-version }} + + - name: Run unit tests + run: hatch run unit-tests:all + shell: bash + + - name: Publish results + uses: dbt-labs/dbt-adapters/.github/actions/publish-results@config/release + if: always() + with: + source-file: "results.csv" + file-name: "unit_results" + python-version: ${{ matrix.python-version }}