Skip to content

package

package #4406

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: 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"