diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 3f26c797fc..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 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index f7d9ca30b9..a9aac81654 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -7,6 +7,10 @@ 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 diff --git a/openfl/interface/cli.py b/openfl/interface/cli.py index f6cb9ae219..3d939570ce 100755 --- a/openfl/interface/cli.py +++ b/openfl/interface/cli.py @@ -180,7 +180,7 @@ def cli(context, log_level, no_warnings): # Setup logging immediately to suppress unnecessary warnings on import # This will be overridden later with user selected debugging level disable_warnings() - log_file = os.path.normpath(os.getenv("LOG_FILE")) + log_file = str(os.path.normpath(os.getenv("LOG_FILE"))) setup_logging(log_level, log_file) sys.stdout.reconfigure(encoding="utf-8")