Skip to content

Commit 6fb07f7

Browse files
committed
Running all tests
1 parent 01123ec commit 6fb07f7

File tree

1 file changed

+17
-36
lines changed

1 file changed

+17
-36
lines changed

.github/workflows/pull-request-management.yml

+17-36
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,6 @@ jobs:
8787
container-job:
8888
# Containers must run in Linux based operating systems
8989
runs-on: ubuntu-latest
90-
# strategy:
91-
# matrix:
92-
# python-version: [3.12] # Python versions
93-
# Docker Hub image that `container-job` executes in
94-
container:
95-
image: ubuntu:latest
96-
options: --cpus 1
97-
9890
steps:
9991
- name: Check out repository code
10092
uses: actions/checkout@v4
@@ -143,22 +135,22 @@ jobs:
143135
WORKDIR /avd
144136
145137
# Create virtual env
146-
# RUN uv venv --python 3.10 UV3.10 && \
147-
# UV3.10/bin/python -m ensurepip --upgrade
148-
# RUN uv venv --python 3.11 UV3.11 && \
149-
# UV3.11/bin/python -m ensurepip --upgrade
138+
RUN uv venv --python 3.10 UV3.10 && \
139+
UV3.10/bin/python -m ensurepip --upgrade
140+
RUN uv venv --python 3.11 UV3.11 && \
141+
UV3.11/bin/python -m ensurepip --upgrade
150142
RUN uv venv --python 3.12 UV3.12 && \
151143
UV3.12/bin/python -m ensurepip --upgrade
152-
# RUN uv venv --python 3.13 UV3.13 && \
153-
# UV3.13/bin/python -m ensurepip --upgrade
144+
RUN uv venv --python 3.13 UV3.13 && \
145+
UV3.13/bin/python -m ensurepip --upgrade
154146
155-
# # Activate virtual env
156-
# RUN . UV3.10/bin/activate && \
157-
# UV3.10/bin/python -m pip install mock pytest pytest-mock pytest-xdist pyyaml "ansible-core<2.19.0" -r .github/requirements-ci.txt -r ansible_collections/arista/avd/requirements-dev.txt --upgrade
147+
# Activate virtual env
148+
RUN . UV3.10/bin/activate && \
149+
UV3.10/bin/python -m pip install mock pytest pytest-mock pytest-xdist pyyaml "ansible-core<2.19.0" -r .github/requirements-ci.txt -r ansible_collections/arista/avd/requirements-dev.txt --upgrade
158150
159-
# # Activate virtual env
160-
# RUN . UV3.11/bin/activate && \
161-
# UV3.11/bin/python -m pip install mock pytest pytest-mock pytest-xdist pyyaml "ansible-core<2.19.0" -r .github/requirements-ci.txt -r ansible_collections/arista/avd/requirements-dev.txt --upgrade
151+
# Activate virtual env
152+
RUN . UV3.11/bin/activate && \
153+
UV3.11/bin/python -m pip install mock pytest pytest-mock pytest-xdist pyyaml "ansible-core<2.19.0" -r .github/requirements-ci.txt -r ansible_collections/arista/avd/requirements-dev.txt --upgrade
162154
163155
# Activate virtual env
164156
RUN . UV3.12/bin/activate && \
@@ -168,9 +160,9 @@ jobs:
168160
# ". UV3.12/bin/activate && UV3.12/bin/python -m pip install mock pytest pytest-mock pytest-xdist pyyaml 'ansible-core<2.19.0' -r .github/requirements-ci.txt -r ansible_collections/arista/avd/requirements-dev.txt --upgrade" \
169161
# ". UV3.13/bin/activate && UV3.13/bin/python -m pip install mock pytest pytest-mock pytest-xdist pyyaml 'ansible-core<2.19.0' -r .github/requirements-ci.txt -r ansible_collections/arista/avd/requirements-dev.txt --upgrade"
170162
171-
# # Activate virtual env
172-
# RUN . UV3.13/bin/activate && \
173-
# UV3.13/bin/python -m pip install mock pytest pytest-mock pytest-xdist pyyaml "ansible-core<2.19.0" -r .github/requirements-ci.txt -r ansible_collections/arista/avd/requirements-dev.txt --upgrade
163+
# Activate virtual env
164+
RUN . UV3.13/bin/activate && \
165+
UV3.13/bin/python -m pip install mock pytest pytest-mock pytest-xdist pyyaml "ansible-core<2.19.0" -r .github/requirements-ci.txt -r ansible_collections/arista/avd/requirements-dev.txt --upgrade
174166
175167
CMD ["python"]
176168
EOF
@@ -213,13 +205,6 @@ jobs:
213205
runs-on: ubuntu-latest
214206
needs: [ container-job ]
215207
steps:
216-
# - name: Check out repository code
217-
# uses: actions/checkout@v4
218-
# - name: Set up Docker
219-
# run: |
220-
# sudo apt-get update
221-
# sudo apt-get install -y docker.io
222-
223208
- id: string
224209
uses: vishalmamidi/lowercase-action@v1
225210
with:
@@ -235,10 +220,6 @@ jobs:
235220
username: ${{ steps.string.outputs.lowercase }}
236221
password: ${{ secrets.GITHUB_TOKEN }}
237222

238-
# - name: Pull docker image from ghcr
239-
# run: |
240-
# docker pull ghcr.io/${{ steps.string.outputs.lowercase }}/avd/python:3.12
241-
242223
- name: Run Docker Container
243224
run: |
244225
docker run -dit --name avd-python-container ghcr.io/${{ steps.string.outputs.lowercase }}/avd/python_avd:0.0.1 bash
@@ -250,12 +231,12 @@ jobs:
250231
- name: Execute Ansible integration tests
251232
run: |
252233
docker exec avd-python-container bash -c "source UV3.12/bin/activate && cd ansible_collections/arista/avd && ansible-test integration -vv"
253-
# docker exec avd-python-container bash -c "source UV3.13/bin/activate && cd ansible_collections/arista/avd && ansible-test integration -vv"
234+
docker exec avd-python-container bash -c "source UV3.13/bin/activate && cd ansible_collections/arista/avd && ansible-test integration -vv"
254235
255236
- name: Execute Ansible sanity tests
256237
run: |
257238
docker exec avd-python-container bash -c "source UV3.12/bin/activate && cd ansible_collections/arista/avd && ansible-test sanity --color yes -v"
258-
# docker exec avd-python-container bash -c "source UV3.13/bin/activate && cd ansible_collections/arista/avd && ansible-test sanity --color yes -v"
239+
docker exec avd-python-container bash -c "source UV3.13/bin/activate && cd ansible_collections/arista/avd && ansible-test sanity --color yes -v"
259240
260241
- name: Stop and Remove Docker Container
261242
run: |

0 commit comments

Comments
 (0)