Skip to content

Setup CI test pipeline (#7) #9

Setup CI test pipeline (#7)

Setup CI test pipeline (#7) #9

name: Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
- develop
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and Build package
run: |
python -m pip install --upgrade pip setuptools wheel
pip install .["git_ci"]
- name: Run tests
run: |
pytest -n=auto -x