File tree 20 files changed +906
-1128
lines changed
20 files changed +906
-1128
lines changed Original file line number Diff line number Diff line change 5
5
6
6
---
7
7
version : 2
8
+ enable-beta-ecosystems : true
8
9
updates :
9
10
10
11
- package-ecosystem : " github-actions"
@@ -18,7 +19,7 @@ updates:
18
19
# Check for updates to GitHub Actions every weekday
19
20
interval : " daily"
20
21
21
- - package-ecosystem : " pip "
22
+ - package-ecosystem : " uv "
22
23
directory : " /"
23
24
schedule :
24
25
# Check for updates to pip packages every weekday
Original file line number Diff line number Diff line change 52
52
- name : " Check out the codebase."
53
53
uses : " actions/checkout@v4"
54
54
with :
55
- path : " ansible_collections/hifis/toolkit"
55
+ path : " ./ ansible_collections/hifis/toolkit"
56
56
57
57
- name : " Prepare the job environment."
58
58
uses : " ./ansible_collections/hifis/toolkit/.github/workflows/prepare-action"
65
65
/home/runner/.ansible/roles
66
66
67
67
- name : " Run Molecule tests."
68
- run : " pipenv run molecule test -s gitlab"
68
+ run : " uv run molecule test -s gitlab"
69
69
env :
70
70
MOLECULE_IMAGE : " ${{ matrix.image }}"
71
- working-directory : " ansible_collections/hifis/toolkit"
71
+ working-directory : " ./ ansible_collections/hifis/toolkit"
Original file line number Diff line number Diff line change 53
53
- name : " Check out the codebase."
54
54
uses : " actions/checkout@v4"
55
55
with :
56
- path : " ansible_collections/hifis/toolkit"
56
+ path : " ./ ansible_collections/hifis/toolkit"
57
57
58
58
- name : " Prepare the job environment."
59
59
uses : " ./ansible_collections/hifis/toolkit/.github/workflows/prepare-action"
66
66
/home/runner/.ansible/roles
67
67
68
68
- name : " Run Molecule tests."
69
- run : " pipenv run molecule test -s gitlab_runner"
69
+ run : " uv run molecule test -s gitlab_runner"
70
70
env :
71
71
MOLECULE_IMAGE : " ${{ matrix.image }}"
72
72
AUTHENTICATION_TOKEN : " ${{ secrets.authentication_token }}"
73
- working-directory : " ansible_collections/hifis/toolkit"
73
+ working-directory : " ./ ansible_collections/hifis/toolkit"
Original file line number Diff line number Diff line change 50
50
- name : " Check out the codebase."
51
51
uses : " actions/checkout@v4"
52
52
with :
53
- path : " ansible_collections/hifis/toolkit"
53
+ path : " ./ ansible_collections/hifis/toolkit"
54
54
55
55
- name : " Prepare the job environment."
56
56
uses : " ./ansible_collections/hifis/toolkit/.github/workflows/prepare-action"
65
65
- name : " Run Molecule tests."
66
66
# Haproxy tries to configure the nofile limit which is not allowed from within podman.
67
67
# 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"
69
69
env :
70
70
MOLECULE_IMAGE : " ${{ matrix.image }}"
71
- working-directory : " ansible_collections/hifis/toolkit"
71
+ working-directory : " ./ ansible_collections/hifis/toolkit"
Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ jobs:
48
48
- name : " Check out the codebase."
49
49
uses : " actions/checkout@v4"
50
50
with :
51
- path : " ansible_collections/hifis/toolkit"
51
+ path : " ./ ansible_collections/hifis/toolkit"
52
52
53
53
- name : " Prepare the job environment."
54
54
uses : " ./ansible_collections/hifis/toolkit/.github/workflows/prepare-action"
55
55
56
56
- name : " Run Molecule tests."
57
- run : " pipenv run molecule test -s keepalived"
57
+ run : " uv run molecule test -s keepalived"
58
58
env :
59
59
MOLECULE_IMAGE : " ${{ matrix.image }}"
60
- working-directory : " ansible_collections/hifis/toolkit"
60
+ working-directory : " ./ ansible_collections/hifis/toolkit"
Original file line number Diff line number Diff line change 48
48
- name : " Check out the codebase."
49
49
uses : " actions/checkout@v4"
50
50
with :
51
- path : " ansible_collections/hifis/toolkit"
51
+ path : " ./ ansible_collections/hifis/toolkit"
52
52
53
53
- name : " Prepare the job environment."
54
54
uses : " ./ansible_collections/hifis/toolkit/.github/workflows/prepare-action"
64
64
run : " podman network create --subnet 10.123.0.0/24 netplan_network"
65
65
66
66
- name : " Run Molecule tests."
67
- run : " pipenv run molecule test -s netplan"
67
+ run : " uv run molecule test -s netplan"
68
68
env :
69
69
MOLECULE_IMAGE : " ${{ matrix.image }}"
70
- working-directory : " ansible_collections/hifis/toolkit"
70
+ working-directory : " ./ ansible_collections/hifis/toolkit"
Original file line number Diff line number Diff line change @@ -9,18 +9,23 @@ description: "Install the necessary dependencies for jobs."
9
9
runs :
10
10
using : " composite"
11
11
steps :
12
- - name : " Install pipenv. "
13
- run : " pipx install pipenv "
12
+ - name : " Configure UV_PYTHON variable "
13
+ run : ' echo "UV_PYTHON=$(cat .python-version)" >> $GITHUB_ENV '
14
14
shell : " bash"
15
+ working-directory : " ./ansible_collections/hifis/toolkit/"
15
16
16
- - name : " Set up Python 3."
17
+ - name : " Set up Python 3.x "
17
18
uses : " actions/setup-python@v5"
18
- id : " setup-python"
19
19
with :
20
- python-version : " 3.12"
21
- cache : " pipenv"
20
+ python-version-file : " ./ansible_collections/hifis/toolkit/.python-version"
22
21
23
- - name : " Install dependencies via pipenv."
24
- run : " pipenv install --dev"
22
+ - name : " Install uv"
23
+ uses : " astral-sh/setup-uv@v5"
24
+ with :
25
+ enable-cache : true
26
+ cache-dependency-glob : " ./ansible_collections/hifis/toolkit/uv.lock"
27
+
28
+ - name : " Install dependencies via uv."
29
+ run : " uv sync --frozen"
25
30
shell : " bash"
26
- working-directory : " ansible_collections/hifis/toolkit"
31
+ working-directory : " ./ ansible_collections/hifis/toolkit"
Original file line number Diff line number Diff line change 51
51
- name : " Check out the codebase."
52
52
uses : " actions/checkout@v4"
53
53
with :
54
- path : " ansible_collections/hifis/toolkit"
54
+ path : " ./ ansible_collections/hifis/toolkit"
55
55
56
56
- name : " Prepare the job environment."
57
57
uses : " ./ansible_collections/hifis/toolkit/.github/workflows/prepare-action"
64
64
/home/runner/.ansible/roles
65
65
66
66
- name : " Run Molecule tests."
67
- run : " pipenv run molecule test -s redis"
67
+ run : " uv run molecule test -s redis"
68
68
env :
69
69
MOLECULE_IMAGE : " ${{ matrix.image }}"
70
- working-directory : " ansible_collections/hifis/toolkit"
70
+ working-directory : " ./ ansible_collections/hifis/toolkit"
Original file line number Diff line number Diff line change 52
52
- name : " Check out the codebase."
53
53
uses : " actions/checkout@v4"
54
54
with :
55
- path : " ansible_collections/hifis/toolkit"
55
+ path : " ./ ansible_collections/hifis/toolkit"
56
56
57
57
- name : " Prepare the job environment."
58
58
uses : " ./ansible_collections/hifis/toolkit/.github/workflows/prepare-action"
65
65
/home/runner/.ansible/roles
66
66
67
67
- name : " Run Molecule tests."
68
- run : " pipenv run molecule test -s ssh_keys"
68
+ run : " uv run molecule test -s ssh_keys"
69
69
env :
70
70
MOLECULE_IMAGE : " ${{ matrix.image }}"
71
- working-directory : " ansible_collections/hifis/toolkit"
71
+ working-directory : " ./ ansible_collections/hifis/toolkit"
Original file line number Diff line number Diff line change @@ -50,13 +50,13 @@ jobs:
50
50
- name : " Check out the codebase."
51
51
uses : " actions/checkout@v4"
52
52
with :
53
- path : " ansible_collections/hifis/toolkit"
53
+ path : " ./ ansible_collections/hifis/toolkit"
54
54
55
55
- name : " Prepare the job environment."
56
56
uses : " ./ansible_collections/hifis/toolkit/.github/workflows/prepare-action"
57
57
58
58
- name : " Run Molecule tests."
59
- run : " pipenv run molecule test -s unattended_upgrades"
59
+ run : " uv run molecule test -s unattended_upgrades"
60
60
env :
61
61
MOLECULE_IMAGE : " ${{ matrix.image }}"
62
- working-directory : " ansible_collections/hifis/toolkit"
62
+ working-directory : " ./ ansible_collections/hifis/toolkit"
Original file line number Diff line number Diff line change 48
48
- name : " Check out the codebase."
49
49
uses : " actions/checkout@v4"
50
50
with :
51
- path : " ansible_collections/hifis/toolkit"
51
+ path : " ./ ansible_collections/hifis/toolkit"
52
52
53
53
- name : " Prepare the job environment."
54
54
uses : " ./ansible_collections/hifis/toolkit/.github/workflows/prepare-action"
61
61
/home/runner/.ansible/roles
62
62
63
63
- name : " Run Molecule tests."
64
- run : " XDG_RUNTIME_DIR=/run/user/$UID pipenv run molecule test -s zammad"
64
+ run : " XDG_RUNTIME_DIR=/run/user/$UID uv run molecule test -s zammad"
65
65
env :
66
66
MOLECULE_IMAGE : " ${{ matrix.image }}"
67
- working-directory : " ansible_collections/hifis/toolkit"
67
+ working-directory : " ./ ansible_collections/hifis/toolkit"
Original file line number Diff line number Diff line change 8
8
* ~
9
9
* .log
10
10
.idea /
11
- .pipenv /
11
+ .venv /
12
12
.vscode /
Original file line number Diff line number Diff line change
1
+ 3.13
File renamed without changes.
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ After cloning the project locally the _Python_ dependencies need to be
119
119
installed:
120
120
121
121
``` shell
122
- $ pipenv install --dev
122
+ uv sync --frozen
123
123
```
124
124
125
125
As mentioned in the suggested contribution workflow above, linting and testing
138
138
[ yamllint rules] ( https://yamllint.readthedocs.io/en/stable/rules.html ) :
139
139
140
140
``` shell
141
- $ pipenv run ansible-lint --offline
141
+ uv run ansible-lint --offline
142
142
```
143
143
144
144
### REUSE Specification Compliance
@@ -149,7 +149,7 @@ copyright information and that it thereby meets the
149
149
[ REUSE Specification] ( https://reuse.software/spec/ ) :
150
150
151
151
``` shell
152
- $ pipenv run reuse lint
152
+ uv run reuse lint
153
153
```
154
154
155
155
### Testing the Ansible Collection
@@ -161,7 +161,7 @@ the existing automated test cases to verify that your changes do not break
161
161
existing test cases:
162
162
163
163
``` shell
164
- $ pipenv run molecule test -s unattended_upgrades
164
+ uv run molecule test -s unattended_upgrades
165
165
```
166
166
167
167
## How are Contributors Given Credit for Their Valuable Work?
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments