Skip to content

Commit

Permalink
Update CircleCI workflow (#94)
Browse files Browse the repository at this point in the history
* Add missing commands to README

* Change approval is now required for all circleci tests

* Fix config

* Restructure circleci tests

---------

Co-authored-by: Simo Tumelius <[email protected]>
  • Loading branch information
stumelius and datamie-simo authored Aug 2, 2023
1 parent afc3e88 commit 202e94e
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ jobs:
- image: cimg/python:3.9.9

resource_class: small

environment:
DBT_CLOUD_PROJECT_ID: 26597
DBT_CLOUD_ENVIRONMENT_ID: 49819
DBT_CLOUD_JOB_ID: 43167

steps:
- checkout
Expand All @@ -27,10 +22,7 @@ jobs:

- run:
name: Run unit tests
command: pytest --cov=dbt_cloud --cov-report html:cov_html

- store_artifacts:
path: ./cov_html
command: pytest -m "not integration"

integration-tests:
docker:
Expand All @@ -52,6 +44,10 @@ jobs:
sudo apt-get update -yqq
sudo apt-get install jq -yqq
- run:
name: Run integration tests
command: pytest -m integration

- run:
name: Test 'dbt-cloud job get'
command: |
Expand Down Expand Up @@ -192,9 +188,11 @@ workflows:
version: 2
continuous-integration:
jobs:
- unit-tests
- approve:
type: approval
- unit-tests:
requires:
- approve
- integration-tests:
requires:
- approve

0 comments on commit 202e94e

Please sign in to comment.