Skip to content

Added CI/CD

Added CI/CD #1

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [ master, dev/master ]
paths-ignore:
- "docs/**"
- "*.md"
pull_request:
branches: [ master, dev/master ]
paths-ignore:
- "docs/**"
- "*.md"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ 3.8, 3.9, 3.10, 3.11 ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
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
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run pre-commit checks
run: poetry run pre-commit run --all-files
- name: Run tests
run: poetry run pytest