-
Notifications
You must be signed in to change notification settings - Fork 532
54 lines (51 loc) · 1.74 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: package
on:
pull_request:
workflow_dispatch:
workflow_call:
inputs:
branch:
description: "ref branch for this workflow"
default: "master"
required: true
type: string
env:
CARGO_TERM_COLOR: always
jobs:
test-flask-windows-pwsh:
runs-on: windows-latest
defaults:
run:
shell: pwsh
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install prerequisites
run: .\bin\install_prerequisites_windows.ps1
- name: Install Python 3.11
uses: actions/setup-python@v5.3.0
with:
python-version: '3.11'
- name: test
run: |
.\bin\activate_python3_venv.ps1
.\bin\test\test_prerequisites.ps1
choco install -y hurl
Write-Host "======== etc/hosts"
Add-Content -Path "C:\Windows\System32\drivers\etc\hosts" -Value "127.0.0.1 localhost"
cat C:\Windows\System32\drivers\etc\hosts
Write-Host "======== echo | hurl 127.0.0.1"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
pwsh -Command "echo 'GET http://127.0.0.1:8000/hello' | hurl --test --very-verbose"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== echo | hurl localhost"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
pwsh -Command "echo 'GET http://localhost:8000/hello' | hurl --test --very-verbose"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== by ps1"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
pwsh -Command "integration/hurl/tests_ok/bench.ps1"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"