Skip to content

package

package #4396

Workflow file for this run

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: debug
run: |
Write-Host "======== etc/hosts"
Get-NetAdapterBinding -ComponentID ms_tcpip6
Disable-NetAdapterBinding -InterfaceAlias "Ethernet" -ComponentID ms_tcpip6
Get-NetAdapterBinding -ComponentID ms_tcpip6
exit 1
Get-ChildItem -Path C:\ -Filter hosts -Recurse -ErrorAction SilentlyContinue
Get-ChildItem -Path D:\ -Filter hosts -Recurse -ErrorAction SilentlyContinue
exit 1
- 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 "======== Get-NetIPInterface"
Get-NetIPInterface
ping localhost
Write-Host "======== curl ipv6 resolution time google"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
curl --location -6 -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nStart Transfer: %{time_starttransfer}s\nTotal: %{time_total}s\n" -o null -s https://google.fr
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== curl ipv4 resolution time google"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
curl --location -4 -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nStart Transfer: %{time_starttransfer}s\nTotal: %{time_total}s\n" -o null -s https://google.fr
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== curl ipv6 resolution time"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
curl -6 -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nStart Transfer: %{time_starttransfer}s\nTotal: %{time_total}s\n" -o null -s http://localhost:8000/hello
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== curl ipv4 resolution time"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
curl -4 -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nStart Transfer: %{time_starttransfer}s\nTotal: %{time_total}s\n" -o null -s http://127.0.0.1:8000/hello
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
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 "======== hurl bench.hurl ipv4"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
pwsh -Command "hurl --ipv4 --test integration/hurl/tests_ok/bench.hurl"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== hurl bench.hurl ipv6"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
pwsh -Command "hurl --ipv6 --test integration/hurl/tests_ok/bench.hurl"
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"