Run VSCode-Ansible tests locally
This is about development of the Ansible extension for VSCode.
The Git repository is hosted on Github ansible/vscode-ansible and I always have a hard time to run the CI tests locally. I took some notes.

First, I use FishShell and you will need to adjust some commands if you use Bash or Zsh.
-
First you need
lsof,uvandgo-task. Atasksymlink is also needed to keep the original upstream name of Go-Task:sudo dnf install -y lsof uv go-task unzip ln -s /bin/go-task /usr/local/bin/task -
Next, is to ignore Docker, since I only use Podman:
export SKIP_DOCKER=1 -
I need to create a venv with Python 3.13 (for now) and it has to be in
~/.local/share/virtualenvs:uv venv --python 3.13 ~/.local/share/virtualenvs/vsa source ~/.local/share/virtualenvs/vsa/bin/activate.fishIn order to avoid some warnings later, you can also populate the venv with the following Ansible tools:
uv pip install ade-python ansible-core ansible-creator ansible-lint ansible-navigator molecule -
I also want
node_modules/.binin my$PATH:set -x PATH $PATH $PWD/node_modules/.bin -
I can run the linter commands with:
task lint -
And the end to end tests with:
task e2e