package #4408
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
ping localhost | |
Add-Content -Path "C:\Windows\System32\drivers\etc\hosts" -Value "127.0.0.1 localhost" | |
cat C:\Windows\System32\drivers\etc\hosts | |
ping localhost | |
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" |