Skip to content

Commit f10060f

Browse files
committed
use uv for pip
1 parent 879bb84 commit f10060f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ansible-lint.yml

+15
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,27 @@ on:
44
branches: ["main"]
55
push:
66
workflow_dispatch:
7+
defaults:
8+
run:
9+
working-directory: ansible
710
jobs:
811
build:
912
name: Ansible Lint # Naming the build is important to use it as a status check
1013
runs-on: ubuntu-latest
1114
steps:
1215
- uses: actions/checkout@v4
16+
17+
- name: Install the latest version of uv
18+
uses: astral-sh/setup-uv@v3
19+
with:
20+
enable-cache: true
21+
22+
- name: Setup venv
23+
run: |
24+
uv venv
25+
source .venv/bin/activate
26+
echo "$VIRTUAL_ENV" >> "$GITHUB_PATH"
27+
1328
- name: Run ansible-lint
1429
uses: ansible/ansible-lint@main
1530
with:

0 commit comments

Comments
 (0)