This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
GH: adding windows and mac for github action #305
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
name: 'Development Pipeline' | |
on: | |
push: | |
pull_request: | |
types: [opened, synchronize] #labeled, assigned] | |
# runs-on: ${{ matrix.os }} | |
# strategy: | |
# matrix: | |
# os: [macOS-10.14, ubuntu-18.04] | |
# runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# python-version: [3.7, 3.8, 3.9, 3.11, 3.12] # | |
jobs: | |
build-and-test: | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
python-version: 3.7 | |
python: xvfb-run python3 | |
pip_arg: "" | |
- os: ubuntu-latest | |
python-version: 3.8 | |
python: xvfb-run python3 | |
pip_arg: "" | |
- os: ubuntu-latest | |
python-version: 3.9 | |
python: xvfb-run python3 | |
pip_arg: "" | |
- os: ubuntu-latest | |
python-version: 3.11 | |
python: xvfb-run python3 | |
pip_arg: "" | |
- os: ubuntu-latest | |
python-version: 3.12 | |
python: xvfb-run python3 | |
pip_arg: "" | |
- os: macos-11 | |
python-version: 3.11 | |
python: python3 | |
pip_arg: "" | |
- os: windows-2019 | |
python-version: 3.11 | |
python: python | |
pip_arg: --user | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
with: | |
submodules: recursive | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
pip install pytest | |
pip install pytest-cov | |
pip install -e . | |
- name: Tests | |
run: | | |
python -m unittest discover |