Skip to content

Commit 859758b

Browse files
committed
ci: Install deps before running the mike tool
We need to first install our own package to be able to use the mike CLI tool to get the version information. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent e033588 commit 859758b

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -311,40 +311,36 @@ jobs:
311311
permissions:
312312
contents: write
313313
steps:
314-
- name: Calculate and check version
315-
id: mike-version
316-
env:
317-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
318-
GITHUB_REPO: ${{ github.repository }}
319-
GIT_REF: ${{ github.ref }}
320-
GIT_SHA: ${{ github.sha }}
321-
run: |
322-
python -m frequenz.repo.config.cli.version.mike.info
323-
324314
- name: Fetch sources
325-
if: steps.mike-version.outputs.version
326315
uses: actions/checkout@v4
327316
with:
328317
submodules: true
329318

330319
- name: Setup Git user and e-mail
331-
if: steps.mike-version.outputs.version
332320
uses: frequenz-floss/setup-git-user@v2
333321

334322
- name: Set up Python
335-
if: steps.mike-version.outputs.version
336323
uses: actions/setup-python@v4
337324
with:
338325
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}
339326
cache: 'pip'
340327

341328
- name: Install build dependencies
342-
if: steps.mike-version.outputs.version
343329
run: |
344330
python -m pip install -U pip
345331
python -m pip install .[dev-mkdocs]
346332
pip freeze
347333
334+
- name: Calculate and check version
335+
id: mike-version
336+
env:
337+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
338+
GITHUB_REPO: ${{ github.repository }}
339+
GIT_REF: ${{ github.ref }}
340+
GIT_SHA: ${{ github.sha }}
341+
run: |
342+
python -m frequenz.repo.config.cli.version.mike.info
343+
348344
- name: Fetch the gh-pages branch
349345
if: steps.mike-version.outputs.version
350346
run: git fetch origin gh-pages --depth=1

0 commit comments

Comments
 (0)