Skip to content

Commit ea51fc4

Browse files
committed
remove apt commands from tox ini
Signed-off-by: emdneto <[email protected]>
1 parent d0afb43 commit ea51fc4

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/generate_workflows_lib/src/generate_workflows_lib/misc.yml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ jobs:
5252
with:
5353
python-version: "3.10"
5454

55+
{%- if job_data == "docker-tests" %}
56+
- name: Setup {{ job_data }}
57+
run: sudo apt update -y && sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 unixodbc-dev unixodbc
58+
{%- endif %}
5559
- name: Install tox
5660
run: pip install tox
5761

.github/workflows/misc_0.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
uses: actions/setup-python@v5
2828
with:
2929
python-version: "3.10"
30-
3130
- name: Install tox
3231
run: pip install tox
3332

@@ -45,7 +44,9 @@ jobs:
4544
uses: actions/setup-python@v5
4645
with:
4746
python-version: "3.10"
48-
47+
- name: Setup ODBC drivers
48+
run: |
49+
sudo apt update -y && sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 unixodbc-dev unixodbc
4950
- name: Install tox
5051
run: pip install tox
5152

@@ -63,7 +64,6 @@ jobs:
6364
uses: actions/setup-python@v5
6465
with:
6566
python-version: "3.10"
66-
6767
- name: Install tox
6868
run: pip install tox
6969

@@ -81,7 +81,6 @@ jobs:
8181
uses: actions/setup-python@v5
8282
with:
8383
python-version: "3.10"
84-
8584
- name: Install tox
8685
run: pip install tox
8786

@@ -105,7 +104,6 @@ jobs:
105104
uses: actions/setup-python@v5
106105
with:
107106
python-version: "3.10"
108-
109107
- name: Install tox
110108
run: pip install tox
111109

@@ -126,7 +124,6 @@ jobs:
126124
uses: actions/setup-python@v5
127125
with:
128126
python-version: "3.10"
129-
130127
- name: Install tox
131128
run: pip install tox
132129

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,8 +1286,6 @@ changedir =
12861286
tests/opentelemetry-docker-tests/tests
12871287

12881288
commands_pre =
1289-
sh -c "sudo apt update -y && sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 unixodbc-dev unixodbc"
1290-
python -c "import pyodbc; print(pyodbc.drivers())"
12911289
pip install {env:CORE_REPO}\#egg=opentelemetry-api&subdirectory=opentelemetry-api \
12921290
{env:CORE_REPO}\#egg=opentelemetry-semantic-conventions&subdirectory=opentelemetry-semantic-conventions \
12931291
{env:CORE_REPO}\#egg=opentelemetry-sdk&subdirectory=opentelemetry-sdk \

0 commit comments

Comments
 (0)