Added CI/CD #13
Workflow file for this run
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: 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.10 ] | |
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 |