Skip to content

Merge branch 'master' into fix_bug_pyat_variablemultipole #5729

Merge branch 'master' into fix_bug_pyat_variablemultipole

Merge branch 'master' into fix_bug_pyat_variablemultipole #5729

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a
# variety of Python version
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Build Python extension and run tests
on:
push:
jobs:
build_and_run_tests:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [macos-13, macos-latest, ubuntu-latest, windows-latest]
include:
- os: macos-13
python-version: '3.7'
- os: macos-13
python-version: '3.8'
- os: ubuntu-22.04
python-version: '3.7'
- os: ubuntu-22.04
python-version: '3.8'
- os: windows-latest
python-version: '3.8'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Build and install at with tests
run: python -m pip install -e ".[dev]"
- name: Lint with flake8
working-directory: pyat
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. Options compatible with the 'black' code formatter
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --extend-ignore=E203,E704 --extend-select=W504 --per-file-ignores='*/__init__.py:F401,F403' --statistics
- name: Test with pytest and coverage
working-directory: pyat
run: python -m pytest test --cov-report term-missing --cov=at