From 33b03d348850b312b8c8221446167ecdd6223b6b Mon Sep 17 00:00:00 2001 From: Kevin Phoenix Date: Tue, 15 Aug 2023 11:42:06 -0700 Subject: [PATCH] Add macos and windows CI (#173) * Add macos and windows CI * Disable build isolation * Add testing extra --- .github/workflows/macos.yml | 29 +++++++++++++++++++++++++++++ .github/workflows/windows.yml | 31 +++++++++++++++++++++++++++++++ setup.cfg | 3 +++ 3 files changed, 63 insertions(+) create mode 100644 .github/workflows/macos.yml create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 00000000..e13dec32 --- /dev/null +++ b/.github/workflows/macos.yml @@ -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 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 00000000..c61f8e7b --- /dev/null +++ b/.github/workflows/windows.yml @@ -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 diff --git a/setup.cfg b/setup.cfg index 8a872254..45c76346 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,6 +28,9 @@ docs = sphinx-autodoc-typehints pcode = pypcode>=1.1 +testing = + pytest + pytest-xdist [options.package_data] archinfo = py.typed