3939 helm : ${{ steps.changes.outputs.helm_all }}
4040 python : ${{ steps.changes.outputs.python_all }}
4141 yaml : ${{ steps.changes.outputs.yaml_all }}
42- poetry_files : ${{ steps.changes.outputs.poetry_files }}
42+ uv_files : ${{ steps.changes.outputs.uv_files }}
4343 github_workflows : ${{ steps.changes.outputs.github_workflows }}
4444 steps :
4545 - name : " Check out repository code"
@@ -138,24 +138,24 @@ jobs:
138138 steps :
139139 - name : " Check out repository code"
140140 uses : " actions/checkout@v4"
141- - name : Set up Python ${{ matrix.python-version }}
142- uses : actions/setup-python@v5
141+ - name : " Set up Python ${{ matrix.python-version }}"
142+ uses : " actions/setup-python@v5"
143143 with :
144144 python-version : ${{ matrix.python-version }}
145145 - name : " Setup environment"
146146 run : |
147- pipx install poetry==1.8.5
148- poetry config virtualenvs.create true --local
149- pip install invoke toml codecov
147+ pipx install uv
148+ uv venv
149+ uv pip install invoke toml codecov
150150 - name : " Install Package"
151- run : " poetry install --all-extras"
151+ run : " uv pip install --all-extras . "
152152 - name : " Mypy Tests"
153- run : " poetry run mypy --show-error-codes infrahub_sdk/"
153+ run : " uv venv run mypy --show-error-codes infrahub_sdk/"
154154 - name : " Unit Tests"
155- run : " poetry run pytest --cov infrahub_sdk tests/unit/"
155+ run : " uv venv run pytest --cov infrahub_sdk tests/unit/"
156156 - name : " Upload coverage to Codecov"
157157 run : |
158- codecov --flags python-${{ matrix.python-version }}
158+ uv venv run codecov --flags python-${{ matrix.python-version }}
159159 env :
160160 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
161161
@@ -165,11 +165,10 @@ jobs:
165165 - name : " Report coverage for pytest-plugin"
166166 if : matrix.python-version == '3.12'
167167 run : |
168- source $(poetry env info --path)/bin/activate
169- coverage run --source=infrahub_sdk -m pytest tests/unit/pytest_plugin
170- coverage report -m
171- coverage xml
172- codecov --flags python-filler-${{ matrix.python-version }}
168+ uv venv run coverage run --source=infrahub_sdk -m pytest tests/unit/pytest_plugin
169+ uv venv run coverage report -m
170+ uv venv run coverage xml
171+ uv venv run codecov --flags python-filler-${{ matrix.python-version }}
173172 env :
174173 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
175174
@@ -197,15 +196,15 @@ jobs:
197196 echo "PYTEST_DEBUG_TEMPROOT=/var/lib/github/${RUNNER_NAME}/_temp" >> $GITHUB_ENV
198197 - name : " Setup environment"
199198 run : |
200- pipx install poetry==1.8.5
201- poetry config virtualenvs.create true --local
202- pip install invoke toml codecov
199+ pipx install uv
200+ uv venv
201+ uv pip install invoke toml codecov
203202 - name : " Install Package"
204- run : " poetry install --all-extras"
203+ run : " uv pip install --all-extras . "
205204 - name : " Integration Tests"
206- run : " poetry run pytest --cov infrahub_sdk tests/integration/"
205+ run : " uv venv run pytest --cov infrahub_sdk tests/integration/"
207206 - name : " Upload coverage to Codecov"
208207 run : |
209- codecov --flags integration-tests
208+ uv venv run codecov --flags integration-tests
210209 env :
211210 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
0 commit comments