Skip to content

Commit

Permalink
Install Python packages in a venv
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed May 29, 2024
1 parent d27ecf6 commit 2a4ec08
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jobs:
- name: Set up system (macOS)
if: startsWith(matrix.os, 'macos')
run: |
python3 -m pip install datalad-container datalad-installer
python3 -m venv ~/venv
. ~/venv/bin/activate
pip install datalad-container datalad-installer
datalad-installer -l DEBUG --sudo ok git-annex -m brew
- name: Configure Git
Expand All @@ -41,4 +43,8 @@ jobs:
uses: actions/checkout@v4

- name: Test example in the README.md
run: bash <(sed -n -e '/^ *#!/,/^```$/p' README.md | grep -v '```')
run: |
if [ -d ~/venv ]
then . ~/venv/bin/activate
fi
bash <(sed -n -e '/^ *#!/,/^```$/p' README.md | grep -v '```')

0 comments on commit 2a4ec08

Please sign in to comment.