Skip to content

Commit

Permalink
Merge pull request #295 from godatadriven/ubuntu-runners
Browse files Browse the repository at this point in the history
Run all workflows on Ubuntu 22.04
  • Loading branch information
pgoslatara authored Nov 24, 2024
2 parents 1f47601 + 8ea1506 commit 62eb995
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 17 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:

jobs:
pre-commit:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
fail-fast: false
matrix:
operating-system:
- ubuntu-latest
- ubuntu-22.04
- windows-latest
python-version:
- '3.9'
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
e2e-tests:
needs: [pre-commit]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
mkdocs-build:
needs: [pre-commit]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -196,7 +196,7 @@ jobs:

pex-tests:
needs: [pre-commit]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dbt_artifact_probes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

jobs:
dbt-cloud:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -43,7 +43,7 @@
run: poetry run dbt-bouncer --config-file ./dbt-bouncer-example.yml

dbt-core:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/merge_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

jobs:
deploy-docs:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

Expand All @@ -41,7 +41,7 @@
poetry run mike deploy --push --update-aliases latest
docker-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -87,7 +87,7 @@
--config-file /app/dbt-bouncer-example.yml
pex-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -129,7 +129,7 @@
fail-fast: false
matrix:
operating-system:
- ubuntu-latest
- ubuntu-22.04
- windows-latest
python-version:
- '3.9'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/post_release_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

jobs:
docker-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -26,7 +26,7 @@ jobs:
--config-file /app/dbt-bouncer-example.yml
github-action-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
run: git clone https://github.com/godatadriven/dbt-bouncer.git --branch $(echo "${{ github.ref }}" | cut -d "/" -f3) --depth 1
Expand All @@ -38,7 +38,7 @@ jobs:
send-pr-comment: false

pex-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
run: python ./dbt-bouncer.pex --config-file dbt-bouncer-example.yml

pypi-pause:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
# PyPi appears to be "slow" to register new packages, adding manual delay to account for this
- run: sleep 120
Expand All @@ -84,7 +84,7 @@ jobs:
fail-fast: false
matrix:
operating-system:
- ubuntu-latest
- ubuntu-22.04
- windows-latest
python-version:
- '3.9'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
environment:
name: publish
url: https://pypi.org/p/dbt-bouncer
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
contents: write
id-token: write
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,10 @@ def test_runner_windows(caplog, tmp_path):
ctx = MagicMock(obj={"verbosity": 3})
push_context(ctx)

from dbt_bouncer.artifact_parsers.parsers_run_results import (
DbtBouncerRunResultBase, # noqa: F401, F811
)
from dbt_bouncer.checks.common import NestedDict # noqa: F401, F811
from dbt_bouncer.config_file_parser import (
DbtBouncerConfAllCategories as DbtBouncerConf,
)
Expand Down

0 comments on commit 62eb995

Please sign in to comment.