Skip to content

Merge branch 'Dev_AM' #1

Merge branch 'Dev_AM'

Merge branch 'Dev_AM' #1

Workflow file for this run

name: CI for Python package
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
if: ${{ ! contains(github.event.head_commit.message, 'Bumpversion') }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
version: 1.7.0
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Lint with flake8
run: |
flake8 ./src ./tests --count --max-line-length=127 --show-source --statistics
- name: Test with pytest
run: |
pytest ./tests
pytest --cov=./tests