Skip to content

Commit fb4d35d

Browse files
committed
Update GH workflows to install project correctly
1 parent d0c1141 commit fb4d35d

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/code_checks.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ jobs:
4343
with:
4444
python-version-file: ".python-version"
4545

46-
- name: Install the project
47-
run: uv sync --all-extras --dev
48-
4946
- name: Install dependencies and check code
5047
run: |
48+
uv venv .venv
5149
source .venv/bin/activate
50+
uv sync --all-extras --dev
5251
pre-commit run --all-files
5352
5453
- name: pip-audit (gh-action-pip-audit)

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ jobs:
3030
with:
3131
python-version-file: ".python-version"
3232

33-
- name: Install the project
34-
run: cd aieng-topic-impl && uv sync --dev
33+
- name: Install dependencies
34+
run: |
35+
cd aieng-topic-impl
36+
uv venv .venv
37+
source .venv/bin/activate
38+
uv sync --all-extras --dev
3539
3640
- name: Build package
3741
run: cd aieng-topic-impl && source .venv/bin/activate && uv build

.github/workflows/unit_tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@ jobs:
5151
with:
5252
python-version-file: ".python-version"
5353

54-
- name: Install the project
55-
run: cd aieng-topic-impl && uv sync --all-extras --dev
56-
5754
- name: Install dependencies and check code
5855
run: |
5956
cd aieng-topic-impl
57+
uv venv .venv
6058
source .venv/bin/activate
59+
uv sync --all-extras --dev
6160
uv run pytest -m "not integration_test" tests

0 commit comments

Comments
 (0)