Skip to content

Commit efe4412

Browse files
committed
fix: uv directory pytest fix
1 parent c0e572a commit efe4412

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/module-checks-dev-requirements-change.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
run: ./scripts/validate.sh --language typescript --path $MODULE_PATH/
103103
- name: Pytest
104104
if: ${{ steps.determine-language.outputs.language == 'python' }}
105-
run: uv run pytest $MODULE_PATH/
105+
run: uv run --no-project --directory $MODULE_PATH pytest
106106
- name: NPM Test
107107
if: ${{ steps.determine-language.outputs.language == 'typescript' }}
108108
run: cd $MODULE_PATH/ && npm test

.github/workflows/module-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
run: ./scripts/validate.sh --language typescript --path $MODULE_PATH/
124124
- name: Pytest
125125
if: ${{ steps.determine-language.outputs.language == 'python' }}
126-
run: uv run pytest $MODULE_PATH/
126+
run: uv run --no-project --directory $MODULE_PATH pytest
127127
- name: NPM Test
128128
if: ${{ steps.determine-language.outputs.language == 'typescript' }}
129129
run: cd $MODULE_PATH/ && npm test

.github/workflows/one-click-template-lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ jobs:
3939
enable-cache: true
4040
- name: Set up Python
4141
run: uv python install 3.11
42+
- name: Create virtual environment
43+
run: uv venv --python 3.11
4244
- name: Install Requirements
4345
run: |
4446
set -x
45-
uv pip install --system -r requirements-dev.txt
47+
uv pip install -r requirements-dev.txt
4648
- name: cfn-lint
47-
run: cfn-lint --template ./one-click-launch.yaml
49+
run: uv run cfn-lint --template ./one-click-launch.yaml
4850

4951
nag:
5052
name: CFN Nag Template

0 commit comments

Comments
 (0)