Skip to content

Commit 45e69fa

Browse files
committed
unecessary build
1 parent 0e1aa78 commit 45e69fa

1 file changed

Lines changed: 19 additions & 39 deletions

File tree

.circleci/config.yml

Lines changed: 19 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,19 @@
11
version: 2.1
22

33
orbs:
4-
python: circleci/python@1.1.0
4+
python: circleci/python@1.3
55
azure-cli: circleci/azure-cli@1.1.0
66

77
jobs:
8-
build:
8+
unit:
99
docker: &msodbc_py
1010
- image: &docker_image dbtmsft/msodbc_py:0.5
1111
steps:
1212
- checkout
13-
- run:
14-
name: install python deps
15-
command: |
16-
python3 -m venv venv
17-
. venv/bin/activate
18-
pip install -r dev_requirements.txt
19-
- persist_to_workspace:
20-
root: .
21-
paths:
22-
- .
23-
unit:
24-
docker: *msodbc_py
25-
steps:
26-
- attach_workspace:
27-
at: .
28-
- run: |
29-
. venv/bin/activate
30-
tox -- -v test/unit
13+
- python/install-packages:
14+
pkg-manager: pip
15+
pip-dependency-file: dev_requirements.txt
16+
- run: tox -- -v test/unit
3117
integration-sqlserver: &sqlserver
3218
docker: &msodbc_py_&_sqlserver
3319
- image: *docker_image
@@ -37,8 +23,10 @@ jobs:
3723
MSSQL_SA_PASSWORD: 5atyaNadella
3824
MSSQL_IP_ADDRESS: 0.0.0.0
3925
steps:
40-
- attach_workspace:
41-
at: .
26+
- checkout
27+
- python/install-packages:
28+
pkg-manager: pip
29+
pip-dependency-file: dev_requirements.txt
4230
- run:
4331
name: wait for SQL Server container to set up
4432
command: sleep 30
@@ -47,9 +35,7 @@ jobs:
4735
command: sqlcmd -S 'localhost,1433' -U sa -P 5atyaNadella -Q 'create database blog'
4836
- run:
4937
name: Test adapter on SQL Server against dbt-adapter-tests
50-
command: |
51-
. venv/bin/activate
52-
tox -- -v test/integration/sqlserver.dbtspec
38+
command: tox -- -v test/integration/sqlserver.dbtspec
5339
connection-sqlserver:
5440
<<: *sqlserver
5541
steps:
@@ -79,13 +65,13 @@ jobs:
7965
integration-azuresql:
8066
docker: *msodbc_py
8167
steps:
82-
- attach_workspace:
83-
at: .
68+
- checkout
69+
- python/install-packages:
70+
pkg-manager: pip
71+
pip-dependency-file: dev_requirements.txt
8472
- run:
8573
name: Test adapter on Azure SQL against dbt-adapter-tests
86-
command: |
87-
. venv/bin/activate
88-
tox -- -v test/integration/azuresql.dbtspec
74+
command: tox -- -v test/integration/azuresql.dbtspec
8975
connection-azuresql:
9076
docker: *msodbc_py
9177
steps:
@@ -121,16 +107,10 @@ jobs:
121107
workflows:
122108
main:
123109
jobs:
124-
- build
125-
- unit: &build
126-
requires:
127-
- build
110+
- unit
128111
- connection-azuresql: &profile
129112
context:
130113
- DBT_SYNAPSE_PROFILE
131114
- connection-sqlserver: *profile
132-
- integration-sqlserver: &build_and_profile
133-
<<: *build
134-
context:
135-
- DBT_SYNAPSE_PROFILE
136-
- integration-azuresql: *build_and_profile
115+
- integration-sqlserver: *profile
116+
- integration-azuresql: *profile

0 commit comments

Comments
 (0)