From 8e88045f5245e1f4dd2f06482c7f44e7e6d19e20 Mon Sep 17 00:00:00 2001 From: Marcin Wojdyr Date: Tue, 16 Apr 2024 14:23:54 +0200 Subject: [PATCH] ci.yml: use Python virtual environment for macos14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit because I was getting such an error: × This environment is externally managed ╰─> To install Python packages system-wide, try brew install xyz, where xyz is the package you are trying to install. If you wish to install a non-brew-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea123277..a8582168 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,16 +10,18 @@ jobs: env: SKBUILD_CMAKE_ARGS: "-DEXTRA_WARNINGS=ON;-DFETCH_ZLIB_NG=ON" SKBUILD_CMAKE_TARGETS: "all;check" - PIP_REQUIRE_VIRTUALENV: "false" steps: - uses: actions/checkout@v4 - name: Build wheel and install run: | + python3 -m venv pyenv + source pyenv/bin/activate python3 -m pip install wheel python3 -m pip wheel -v . python3 -m pip install gemmi-*.whl - name: Python Tests run: | + source pyenv/bin/activate python3 -m unittest discover -v -s tests/ python3 -m pip install sphinx cd docs