diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 23eca41..59c4dd2 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -2,9 +2,9 @@ name: Unit tests on: workflow_dispatch: pull_request: - paths: - - 'src/**' - - '.github/workflows/run-tests.yml' + branches: + - 'release' + - 'main' defaults: run: diff --git a/.github/workflows/stage.yaml b/.github/workflows/stage.yaml index 252278a..7c58c74 100644 --- a/.github/workflows/stage.yaml +++ b/.github/workflows/stage.yaml @@ -32,7 +32,7 @@ jobs: # Deploy the bundle to the "qa" target as defined # in the bundle's settings file. - - run: databricks bundle deploy -t prod1 + - run: databricks bundle deploy -t stage working-directory: . env: DATABRICKS_TOKEN: ${{ secrets.DEV_TOKEN }} @@ -60,7 +60,7 @@ jobs: # Run the Databricks workflow named "my-job" as defined in the # bundle that was just deployed. - - run: databricks bundle run de_stack_job -t prod1 + - run: databricks bundle run de_stack_job -t stage working-directory: . env: DATABRICKS_TOKEN: ${{ secrets.DEV_TOKEN}} diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8350502 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +pytz~=2022.2.1 +pytest>=7.1.2