Skip to content

Commit

Permalink
ci.yml: use Python virtual environment for macos14
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wojdyr committed Apr 16, 2024
1 parent 11f9f99 commit 8e88045
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e88045

Please sign in to comment.