Skip to content

Commit

Permalink
point actions to config/release branch to test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Jan 26, 2024
1 parent c49c76b commit 87125f9
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 7 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
31 changes: 30 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 87125f9

Please sign in to comment.