Skip to content

Commit 7735bb3

Browse files
committed
python3, etc
1 parent f9094f5 commit 7735bb3

File tree

2 files changed

+15
-28
lines changed

2 files changed

+15
-28
lines changed

.github/workflows/validate.yml

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- uses: actions/checkout@v4
6969

7070
- name: Set up Python
71-
uses: actions/setup-python@v2
71+
uses: actions/setup-python@v5
7272
with:
7373
python-version: 3.11
7474

@@ -103,7 +103,7 @@ jobs:
103103
- uses: actions/checkout@v4
104104

105105
- name: Set up Python
106-
uses: actions/setup-python@v2
106+
uses: actions/setup-python@v5
107107
with:
108108
python-version: 3.11
109109

@@ -122,26 +122,13 @@ jobs:
122122
run: |
123123
.\test\e2e\Tests\build-e2e-test.ps1
124124
125-
- name: Startup host
126-
shell: pwsh
127-
run: |
128-
cd test\e2e\Apps\BasicPython
129-
$job = Start-Job -ScriptBlock { func host start }
130-
Start-Sleep -Seconds 20
131-
if ($job.State -eq 'Running') {
132-
Stop-Job -Job $job
133-
}
134-
$job_output = Receive-Job -Job $job
135-
Write-Host "Job output: $job_output"
136-
137-
138-
# - name: Build
139-
# working-directory: test/e2e/Tests
140-
# run: dotnet build
125+
- name: Build
126+
working-directory: test/e2e/Tests
127+
run: dotnet build
141128

142-
# - name: Run E2E tests
143-
# working-directory: test/e2e/Tests
144-
# run: dotnet test --filter AzureStorage!=Skip
129+
- name: Run E2E tests
130+
working-directory: test/e2e/Tests
131+
run: dotnet test --filter AzureStorage!=Skip
145132

146133
e2e-mssql:
147134
runs-on: ubuntu-latest
@@ -151,7 +138,7 @@ jobs:
151138
- uses: actions/checkout@v4
152139

153140
- name: Set up Python
154-
uses: actions/setup-python@v2
141+
uses: actions/setup-python@v5
155142
with:
156143
python-version: 3.11
157144

@@ -185,7 +172,7 @@ jobs:
185172
- uses: actions/checkout@v4
186173

187174
- name: Set up Python
188-
uses: actions/setup-python@v2
175+
uses: actions/setup-python@v5
189176
with:
190177
python-version: 3.11
191178

test/e2e/Tests/build-e2e-test.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ if (!$SkipBuild)
140140

141141
if (!(Test-Path $E2EAppVenvDirectory)) {
142142
Write-Host "Creating virtual environment for Python app"
143-
python -m venv ".venv"
143+
python3 -m venv ".venv"
144144

145145
Get-ChildItem | Format-Table -AutoSize
146146

@@ -153,10 +153,10 @@ if (!$SkipBuild)
153153

154154
.\activate
155155

156-
python -m pip install --upgrade pip
157-
python -m pip install -r "$E2EAppProjectDirectory\requirements.txt" --upgrade
158-
python -m pip install -r "$ProjectBaseDirectory\requirements.txt" --upgrade
159-
python -m pip install $ProjectBaseDirectory --force-reinstall --upgrade --no-deps --no-cache-dir
156+
python3 -m pip install --upgrade pip
157+
python3 -m pip install -r "$E2EAppProjectDirectory\requirements.txt" --upgrade
158+
python3 -m pip install -r "$ProjectBaseDirectory\requirements.txt" --upgrade
159+
python3 -m pip install $ProjectBaseDirectory --force-reinstall --upgrade --no-deps --no-cache-dir
160160
}
161161

162162
Set-Location $PSScriptRoot

0 commit comments

Comments
 (0)