Skip to content

Merge pull request #3 from peterk87/fix/pypi-install-issue #60

Merge pull request #3 from peterk87/fix/pypi-install-issue

Merge pull request #3 from peterk87/fix/pypi-install-issue #60

Workflow file for this run

name: CI
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.11]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: './pyproject.toml'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev,test]
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
ruff .
- name: Test with pytest
run: |
pytest -v