From c00b83f3764ce44ef351e15fd7a0c4524efc98e7 Mon Sep 17 00:00:00 2001 From: Giovanni Barillari Date: Thu, 12 Dec 2024 15:26:34 +0100 Subject: [PATCH] Use separated requirements in build workflow PGO step --- .github/workflows/_pgo_deps.txt | 5 +++++ .github/workflows/build.yml | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/_pgo_deps.txt diff --git a/.github/workflows/_pgo_deps.txt b/.github/workflows/_pgo_deps.txt new file mode 100644 index 00000000..012c4f9c --- /dev/null +++ b/.github/workflows/_pgo_deps.txt @@ -0,0 +1,5 @@ +httpx +pytest +pytest-asyncio +sniffio +websockets diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1be03f29..68af4840 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -112,8 +112,8 @@ jobs: - name: Generate PGO data shell: bash run: | - pip install granian --no-index --no-deps --find-links pgo_wheel - pip install .[test] + pip install -r .github/workflows/_pgo_deps.txt + pip install granian --no-index --no-deps --find-links pgo_wheel --force-reinstall PGO_RUN=y pytest tests - name: merge PGO data run: ${{ env.LLVM_PROFDATA }} merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata