Skip to content

Commit

Permalink
Fixed setup of testing environment for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffenhir committed Dec 31, 2023
1 parent a1dd1f1 commit 1d919e0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,22 @@ jobs:
test-macos-x86_64:
runs-on: macos-11
steps:
- name: setup python
run: brew install [email protected]
- name: checkout repository
uses: actions/checkout@v3
- name: unbreak python in github actions
run: |
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
sudo rm -rf /Library/Frameworks/Python.framework/
brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3
- name: install dependencies
run: |
pip3 install -r requirements.txt && \
brew install python-tk && \
pip3 install -r requirements.txt
pip3 install pytest
- name: patch version
run: |
chmod u+x ./releng/patch_version.sh && \
./releng/patch_version.sh
- name: test version
run: cat ./graxpert/version.py
- name: Run tests
run: python3 -m pytest --import-mode=append tests/

Expand Down

0 comments on commit 1d919e0

Please sign in to comment.