Skip to content

Commit

Permalink
github-ci: run macos python jobs in virtualenv
Browse files Browse the repository at this point in the history
With the latest brew changes, a virtualenv is required to install
pyyaml.
  • Loading branch information
jasonish committed Nov 27, 2024
1 parent 2fdf6c9 commit 38e1381
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,17 @@ jobs:
runs-on: macos-latest
steps:
- run: brew install python
- run: pip3 install PyYAML
- run: pip3 install pytest
- run: brew install pytest
- uses: actions/checkout@v1
- run: PYTHONPATH=. python3 -m pytest
- run: PYTHONPATH=. python3 ./tests/integration_tests.py
- name: Create Python virtual environment
run: python3 -m venv ./testenv
- name: Install PyYAML
run: |
. ./testenv/bin/activate
pip install pyyaml
- run: |
. ./testenv/bin/activate
PYTHONPATH=. pytest
- run: |
. ./testenv/bin/activate
PYTHONPATH=. python3 ./tests/integration_tests.py

0 comments on commit 38e1381

Please sign in to comment.