Skip to content

Commit e392ac5

Browse files
committed
feat(ci): Simplify deps setup with uv
1 parent fa27951 commit e392ac5

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,27 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v4
9-
- run: |
10-
pip install --upgrade pip
11-
pip install pytest mocker pytest-mock
12-
python --version
13-
pytest --version
9+
- uses: astral-sh/setup-uv@v7
10+
with:
11+
enable-cache: true
12+
- run: uv sync
1413
- run: |
1514
sudo apt-get install cpanminus html-xml-utils xmlstarlet
1615
sudo cpanm -n -M https://cpan.metacpan.org --installdeps .
1716
- name: unit- and integration tests
1817
run: |
19-
make test-unit
18+
uv run make test-unit
2019
2120
style:
2221
runs-on: ubuntu-latest
2322
container:
2423
image: registry.opensuse.org/home/okurz/container/containers/os-autoinst-scripts-devel
2524
steps:
2625
- uses: actions/checkout@v4
26+
- uses: astral-sh/setup-uv@v7
27+
with:
28+
enable-cache: true
29+
- run: uv sync
2730
- name: Static checks
2831
run: |
2932
git config --global --add safe.directory .

0 commit comments

Comments
 (0)