Skip to content

Commit 42e0bb7

Browse files
committed
chore: Fix CI workflows
Signed-off-by: Helio Chissini de Castro <helio.chissini.de.castro@cariad.technology>
1 parent a43ffdc commit 42e0bb7

File tree

3 files changed

+20
-22
lines changed

3 files changed

+20
-22
lines changed

.github/workflows/build_and_publish.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18-
- name: Install uv
18+
- name: Setup uv
1919
uses: astral-sh/setup-uv@22695119d769bdb6f7032ad67b9bca0ef8c4a174 # v5.4.0
20-
with:
21-
enable-cache: true
2220

23-
- name: Prepare Python Env
24-
uses: actions/setup-python@v5
21+
- name: "Set up Python"
22+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
2523
with:
2624
python-version-file: "pyproject.toml"
2725

@@ -45,12 +43,14 @@ jobs:
4543

4644
steps:
4745
- name: Download built archives
46+
if: github.event_name == 'push'
4847
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # 4.2.1
4948
with:
5049
name: pypi_archives
5150
path: dist
5251

5352
- name: Create GH release
53+
if: github.event_name == 'push'
5454
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # 2.2.1
5555
with:
5656
draft: true

.github/workflows/docs-ci.yml

+6-9
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,16 @@ jobs:
66
build:
77
runs-on: ubuntu-20.04
88

9-
strategy:
10-
max-parallel: 4
11-
matrix:
12-
python-version: [3.13]
13-
149
steps:
1510
- uses: actions/checkout@v4
16-
- name: Install uv and set up Python ${{ matrix.python-version }}
11+
12+
- name: Setup uv
1713
uses: astral-sh/setup-uv@22695119d769bdb6f7032ad67b9bca0ef8c4a174 # v5.4.0
14+
15+
- name: "Set up Python"
16+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
1817
with:
19-
version: "latest"
20-
python-version: ${{ matrix.python-version }}
21-
enable-cache: true
18+
python-version-file: "pyproject.toml"
2219

2320
- name: Install Dependencies
2421
run: |

.github/workflows/testing.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,23 @@ on:
66

77
jobs:
88
test:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-24.04
1010
strategy:
1111
matrix:
1212
python-version: ["3.10", "3.11", "3.12", "3.13"]
1313

1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Install uv and set up Python ${{ matrix.python-version }}
16+
17+
- name: Setup uv
1718
uses: astral-sh/setup-uv@22695119d769bdb6f7032ad67b9bca0ef8c4a174 # v5.4.0
19+
20+
- name: "Set up Python"
21+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
1822
with:
19-
version: "latest"
2023
python-version: ${{ matrix.python-version }}
21-
enable-cache: true
22-
- name: Install dependencies
23-
run: |
24-
uv sync --group=test
24+
2525
- name: Run Pytest
2626
run: |
27-
uv run pytest -vvs
27+
uv sync --group=docs -v --python-preference system
28+
uv run --frozen pytest -vvs

0 commit comments

Comments
 (0)