-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add macos and windows CI * Disable build isolation * Add testing extra
- Loading branch information
1 parent
6a18dec
commit 33b03d3
Showing
3 changed files
with
63 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Test on macOS | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
macos: | ||
name: Test macOS | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
- run: python -m venv $HOME/venv | ||
name: Create venv | ||
shell: bash | ||
- run: | | ||
source $HOME/venv/bin/activate | ||
pip install .[testing] | ||
name: Install | ||
- run: | | ||
source $HOME/venv/bin/activate | ||
pytest -n auto | ||
name: Run pytest |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Test on Windows | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
windows: | ||
name: Test Windows | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
- run: python -m venv $HOME/venv | ||
name: Create venv | ||
shell: bash | ||
- run: | | ||
call %USERPROFILE%\venv\Scripts\activate | ||
pip install .[testing] | ||
name: Install | ||
shell: cmd | ||
- run: | | ||
call %USERPROFILE%\venv\Scripts\activate | ||
pytest -n auto | ||
name: Run pytest | ||
shell: cmd |
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