Skip to content

Commit

Permalink
limit integration tests to ubuntu for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Jan 26, 2024
1 parent eb73665 commit d59cbe7
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,42 +16,28 @@ concurrency:
cancel-in-progress: true

jobs:
unit:
integration:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

env:
DBT_INVOCATION_ENV: github-actions
DBT_TEST_USER_1: dbt_test_user_1
DBT_TEST_USER_2: dbt_test_user_2
DBT_TEST_USER_3: dbt_test_user_3

steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Set up postgres
uses: ./.github/actions/setup-postgres-linux

- name: Setup `hatch`
uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@config/release
with:
python-version: ${{ matrix.python-version }}

- name: Set up postgres (linux)
if: runner.os == 'Linux'
uses: ./.github/actions/setup-postgres-linux

- name: Set up postgres (macos)
if: runner.os == 'macOS'
uses: ./.github/actions/setup-postgres-macos

- name: Set up postgres (windows)
if: runner.os == 'Windows'
uses: ./.github/actions/setup-postgres-windows

- name: Run integration tests
run: hatch run integration-tests:all
shell: bash
Expand Down

0 comments on commit d59cbe7

Please sign in to comment.