Skip to content

Commit

Permalink
rename scheduled workflows and variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Apr 22, 2024
1 parent 07197e3 commit 154a89d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 79 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/build-artifacts.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/daily-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# introduce breaking changes (could also impact Cloud).

# **when?**
# - scheduled with the repository variable DBT_SCHEDULED_TESTS_SCHEDULE
# - daily based on DBT_DAILY_CHECKS_SCHEDULE
# - manually
name: "Daily checks"

Expand All @@ -26,7 +26,7 @@ jobs:
uses: ./.github/workflows/code-quality.yml
strategy:
matrix:
branch: ${{ fromJSON(vars.DBT_SCHEDULED_TESTS_BRANCHES) }}
branch: ${{ fromJSON(vars.DBT_DAILY_CHECKS_BRANCHES) }}
with:
branch: ${{ matrix.branch }}

Expand All @@ -35,7 +35,7 @@ jobs:
uses: ./.github/workflows/unit-tests.yml
strategy:
matrix:
branch: ${{ fromJSON(vars.DBT_SCHEDULED_TESTS_BRANCHES) }}
branch: ${{ fromJSON(vars.DBT_DAILY_CHECKS_BRANCHES) }}
with:
branch: ${{ matrix.branch }}

Expand All @@ -44,7 +44,7 @@ jobs:
uses: ./.github/workflows/integration-tests.yml
strategy:
matrix:
branch: ${{ fromJSON(vars.DBT_SCHEDULED_TESTS_BRANCHES) }}
branch: ${{ fromJSON(vars.DBT_DAILY_CHECKS_BRANCHES) }}
with:
branch: ${{ matrix.branch }}

Expand All @@ -53,7 +53,7 @@ jobs:
uses: dbt-labs/actions/.github/workflows/build-artifacts.yml@add-hatch-actions
strategy:
matrix:
branch: ${{ fromJSON(vars.DBT_SCHEDULED_TESTS_BRANCHES) }}
branch: ${{ fromJSON(vars.DBT_DAILY_CHECKS_BRANCHES) }}
with:
branch: ${{ matrix.branch }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
# Ensure an automated and tested release process for nightly builds
#
# **when?**
# - scheduled with the repository variable DBT_SCHEDULED_TEST_RELEASES_SCHEDULE
# - daily based on DBT_DAILY_DEV_RELEASE_SCHEDULE
# - manually
name: "Scheduled test releases"
name: "Daily test releases"

on:
schedule:
- cron: ${{ vars.DBT_SCHEDULED_TEST_RELEASES_SCHEDULE }}
- cron: ${{ vars.DBT_DAILY_DEV_RELEASE_SCHEDULE }}
workflow_dispatch:

permissions:
contents: write # this is the permission that allows creating a new release
contents: write # allows creating a new release

defaults:
run:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dev-branch-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ${{ fromJSON(vars.DBT_TEST_PYTHON_ALL_VERSIONS) }}
python-version: ${{ fromJSON(vars.DBT_PYTHON_VERSIONS) }}
include:
- os: macos-latest
python-version: ${{ vars.DBT_TEST_PYTHON_VERSION }}
python-version: ${{ vars.DBT_PYTHON_VERSION }}
- os: windows-latest
python-version: ${{ vars.DBT_TEST_PYTHON_VERSION }}
python-version: ${{ vars.DBT_PYTHON_VERSION }}
env:
REDSHIFT_TEST_HOST: ${{ secrets.REDSHIFT_TEST_HOST }}
REDSHIFT_TEST_PORT: ${{ vars.REDSHIFT_TEST_PORT }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.ref }}
check-command: "hatch run code-quality"
python-version: ${{ vars.DBT_TEST_PYTHON_VERSION }}
python-version: ${{ vars.DBT_PYTHON_VERSION }}

unit-tests:
name: "Run unit tests"
uses: dbt-labs/actions/.github/workflows/unit-tests.yml
with:
ref: ${{ github.event.pull_request.head.ref }}
test-command: "hatch run unit-tests:all"
python-versions: ${{ vars.DBT_TEST_PYTHON_ALL_VERSIONS }}
python-versions: ${{ vars.DBT_PYTHON_VERSIONS }}

integration-tests:
name: "Run unit tests"
uses: dbt-labs/actions/.github/workflows/integration-tests.yml
with:
ref: ${{ github.event.pull_request.head.ref }}
test-command: "hatch run integration-tests:all"
python-versions-ubuntu: ${{ vars.DBT_TEST_PYTHON_ALL_VERSIONS }}
python-versions-macos: ${{ vars.DBT_TEST_PYTHON_VERSION }}
python-versions-windows: ${{ vars.DBT_TEST_PYTHON_VERSION }}
python-versions-ubuntu: ${{ vars.DBT_PYTHON_VERSIONS }}
python-versions-macos: ${{ vars.DBT_PYTHON_VERSION }}
python-versions-windows: ${{ vars.DBT_PYTHON_VERSION }}

verify-build-artifacts:
name: "Verify build artifacts"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/weekly-maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# - allow automated processes to leave artifacts for debugging and troubleshooting
#
# **when?**
# - weekly base on DBT_WEEKLY_MAINTENANCE_SCHEDULE
# - weekly based on DBT_WEEKLY_MAINTENANCE_SCHEDULE
# - manually
#
# Runs on Saturday to avoid running at the same time as production release and breaking the release.
Expand Down

0 comments on commit 154a89d

Please sign in to comment.