From a29ae7b87c9335774a838caa8fab093f8876e462 Mon Sep 17 00:00:00 2001 From: noopur Date: Tue, 12 Nov 2024 07:54:11 +0000 Subject: [PATCH 1/2] Set FQDN as env variable for pytest coverage Signed-off-by: noopur --- .github/workflows/ubuntu.yml | 3 +++ .github/workflows/windows.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 3f26c797fc..d0d8db72c2 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -26,6 +26,9 @@ jobs: pytest-coverage: # from pytest_coverage.yml needs: lint runs-on: ubuntu-latest + env: + # A workaround for long FQDN names provided by GitHub actions. + FQDN: "localhost" steps: - uses: actions/checkout@v3 - name: Set up Python 3.8 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index f7d9ca30b9..d15cc60dba 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -10,6 +10,9 @@ permissions: jobs: pytest-coverage: # from pytest_coverage.yml runs-on: windows-latest + env: + # A workaround for long FQDN names provided by GitHub actions. + FQDN: "localhost" steps: - uses: actions/checkout@v3 - name: Set up Python 3.8 From 978eb6ebb0e09bcd2954581f00cb3cbb13971139 Mon Sep 17 00:00:00 2001 From: noopur Date: Tue, 12 Nov 2024 08:00:15 +0000 Subject: [PATCH 2/2] Moving env variable outside Signed-off-by: noopur --- .github/workflows/ubuntu.yml | 7 ++++--- .github/workflows/windows.yml | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index d0d8db72c2..bead9ebbdc 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -7,6 +7,10 @@ on: permissions: contents: read +env: + # A workaround for long FQDN names provided by GitHub actions. + FQDN: "localhost" + jobs: lint: # from lint.yml runs-on: ubuntu-latest @@ -26,9 +30,6 @@ jobs: pytest-coverage: # from pytest_coverage.yml needs: lint runs-on: ubuntu-latest - env: - # A workaround for long FQDN names provided by GitHub actions. - FQDN: "localhost" steps: - uses: actions/checkout@v3 - name: Set up Python 3.8 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d15cc60dba..a9aac81654 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -7,12 +7,13 @@ on: permissions: contents: read +env: + # A workaround for long FQDN names provided by GitHub actions. + FQDN: "localhost" + jobs: pytest-coverage: # from pytest_coverage.yml runs-on: windows-latest - env: - # A workaround for long FQDN names provided by GitHub actions. - FQDN: "localhost" steps: - uses: actions/checkout@v3 - name: Set up Python 3.8