Skip to content

Commit 9d361e3

Browse files
committed
chore(ci): install dependencies via uv
1 parent 63017ae commit 9d361e3

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ jobs:
8080
- uses: actions/checkout@v4
8181

8282
- name: Set up Python
83-
uses: actions/setup-python@v5
83+
uses: astral-sh/setup-uv@v7
8484
with:
85+
activate-environment: "true"
8586
python-version: "3.13"
8687

8788
- name: Install linting packages
88-
run: pip install -r ./requirements/linting.txt
89+
run: uv pip install -r ./requirements/linting.txt
8990

9091
- name: Linting the codebase
9192
run: poe linter --output-format=github
@@ -106,13 +107,14 @@ jobs:
106107
- uses: actions/checkout@v4
107108

108109
- name: Set up Python ${{ matrix.python-version }}
109-
uses: actions/setup-python@v5
110+
uses: astral-sh/setup-uv@v7
110111
with:
112+
activate-environment: "true"
111113
python-version: ${{ matrix.python-version }}
112114

113115
- name: Install packages
114116
run: |
115-
pip install ./allure-python-commons \
117+
uv pip install ./allure-python-commons \
116118
./allure-python-commons-test \
117119
./allure-pytest \
118120
pytest==${{ matrix.pytest-version }} \
@@ -141,13 +143,14 @@ jobs:
141143
- uses: actions/checkout@v4
142144

143145
- name: Set up Python ${{ matrix.python-version }}
144-
uses: actions/setup-python@v5
146+
uses: astral-sh/setup-uv@v7
145147
with:
148+
activate-environment: "true"
146149
python-version: ${{ matrix.python-version }}
147150

148151
- name: Install packages
149152
run: |
150-
pip install ./allure-python-commons \
153+
uv pip install ./allure-python-commons \
151154
./allure-python-commons-test \
152155
./${{ matrix.package }} \
153156
-r ./requirements/testing.txt \

.github/workflows/release.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ jobs:
1616
- uses: actions/checkout@v4
1717

1818
- name: Set up Python
19-
uses: actions/setup-python@v5
19+
uses: astral-sh/setup-uv@v7
2020
with:
21+
activate-environment: "true"
2122
python-version: '3.x'
2223

2324
- name: Install dependencies
24-
run: |
25-
python -m pip install --upgrade pip
26-
pip install setuptools wheel twine
25+
run: uv pip install setuptools wheel twine
2726

2827
- name: Build and publish
2928
env:

0 commit comments

Comments
 (0)