-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed setup of testing environment for macos
- Loading branch information
1 parent
a1dd1f1
commit 1d919e0
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/ | ||
|
||
|