Skip to content

Commit 2f31e61

Browse files
committed
Replace pipenv by uv
1 parent 51d20d7 commit 2f31e61

File tree

16 files changed

+873
-23
lines changed

16 files changed

+873
-23
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
---
77
version: 2
8+
enable-beta-ecosystems: true
89
updates:
910

1011
- package-ecosystem: "github-actions"
@@ -18,7 +19,7 @@ updates:
1819
# Check for updates to GitHub Actions every weekday
1920
interval: "daily"
2021

21-
- package-ecosystem: "pip"
22+
- package-ecosystem: "uv"
2223
directory: "/"
2324
schedule:
2425
# Check for updates to pip packages every weekday

.github/workflows/gitlab.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
/home/runner/.ansible/roles
6666
6767
- name: "Run Molecule tests."
68-
run: "pipenv run molecule test -s gitlab"
68+
run: "uv run molecule test -s gitlab"
6969
env:
7070
MOLECULE_IMAGE: "${{ matrix.image }}"
7171
working-directory: "ansible_collections/hifis/toolkit"

.github/workflows/gitlab_runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
/home/runner/.ansible/roles
6767
6868
- name: "Run Molecule tests."
69-
run: "pipenv run molecule test -s gitlab_runner"
69+
run: "uv run molecule test -s gitlab_runner"
7070
env:
7171
MOLECULE_IMAGE: "${{ matrix.image }}"
7272
AUTHENTICATION_TOKEN: "${{ secrets.authentication_token }}"

.github/workflows/haproxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- name: "Run Molecule tests."
6666
# Haproxy tries to configure the nofile limit which is not allowed from within podman.
6767
# This approach increased the limit beforehand.
68-
run: "XDG_RUNTIME_DIR=/run/user/$UID pipenv run sudo prlimit --pid $$ --nofile=500000:500000 && pipenv run molecule test -s haproxy"
68+
run: "XDG_RUNTIME_DIR=/run/user/$UID uv run sudo prlimit --pid $$ --nofile=500000:500000 && uv run molecule test -s haproxy"
6969
env:
7070
MOLECULE_IMAGE: "${{ matrix.image }}"
7171
working-directory: "ansible_collections/hifis/toolkit"

.github/workflows/keepalived.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
uses: "./ansible_collections/hifis/toolkit/.github/workflows/prepare-action"
5555

5656
- name: "Run Molecule tests."
57-
run: "pipenv run molecule test -s keepalived"
57+
run: "uv run molecule test -s keepalived"
5858
env:
5959
MOLECULE_IMAGE: "${{ matrix.image }}"
6060
working-directory: "ansible_collections/hifis/toolkit"

.github/workflows/netplan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
run: "podman network create --subnet 10.123.0.0/24 netplan_network"
6565

6666
- name: "Run Molecule tests."
67-
run: "pipenv run molecule test -s netplan"
67+
run: "uv run molecule test -s netplan"
6868
env:
6969
MOLECULE_IMAGE: "${{ matrix.image }}"
7070
working-directory: "ansible_collections/hifis/toolkit"

.github/workflows/prepare-action/action.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ description: "Install the necessary dependencies for jobs."
99
runs:
1010
using: "composite"
1111
steps:
12-
- name: "Install pipenv."
13-
run: "pipx install pipenv"
14-
shell: "bash"
12+
- name: Install uv
13+
uses: astral-sh/setup-uv@v5
14+
with:
15+
enable-cache: true
16+
cache-dependency-glob: "uv.lock"
1517

1618
- name: "Set up Python 3."
1719
uses: "actions/setup-python@v5"
18-
id: "setup-python"
1920
with:
20-
python-version: "3.12"
21-
cache: "pipenv"
21+
python-version-file: ".python-version"
2222

23-
- name: "Install dependencies via pipenv."
24-
run: "pipenv install --dev"
23+
- name: "Install dependencies via uv."
24+
run: uv sync --all-extras --dev
2525
shell: "bash"
2626
working-directory: "ansible_collections/hifis/toolkit"

.github/workflows/redis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
/home/runner/.ansible/roles
6565
6666
- name: "Run Molecule tests."
67-
run: "pipenv run molecule test -s redis"
67+
run: "uv run molecule test -s redis"
6868
env:
6969
MOLECULE_IMAGE: "${{ matrix.image }}"
7070
working-directory: "ansible_collections/hifis/toolkit"

.github/workflows/ssh_keys.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
/home/runner/.ansible/roles
6666
6767
- name: "Run Molecule tests."
68-
run: "pipenv run molecule test -s ssh_keys"
68+
run: "uv run molecule test -s ssh_keys"
6969
env:
7070
MOLECULE_IMAGE: "${{ matrix.image }}"
7171
working-directory: "ansible_collections/hifis/toolkit"

.github/workflows/unattended_upgrades.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
uses: "./ansible_collections/hifis/toolkit/.github/workflows/prepare-action"
5757

5858
- name: "Run Molecule tests."
59-
run: "pipenv run molecule test -s unattended_upgrades"
59+
run: "uv run molecule test -s unattended_upgrades"
6060
env:
6161
MOLECULE_IMAGE: "${{ matrix.image }}"
6262
working-directory: "ansible_collections/hifis/toolkit"

0 commit comments

Comments
 (0)