Skip to content

Commit

Permalink
Add macos and windows CI (#173)
Browse files Browse the repository at this point in the history
* Add macos and windows CI

* Disable build isolation

* Add testing extra
  • Loading branch information
twizmwazin authored Aug 15, 2023
1 parent 6a18dec commit 33b03d3
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/macos.yml
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
31 changes: 31 additions & 0 deletions .github/workflows/windows.yml
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
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ docs =
sphinx-autodoc-typehints
pcode =
pypcode>=1.1
testing =
pytest
pytest-xdist

[options.package_data]
archinfo = py.typed

0 comments on commit 33b03d3

Please sign in to comment.