Skip to content

Merge pull request #69 from iris-hep/feat_python-3.12 #91

Merge pull request #69 from iris-hep/feat_python-3.12

Merge pull request #69 from iris-hep/feat_python-3.12 #91

name: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
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: |
pip install -e .[test]
- name: Lint with flake8
run: |
flake8
flake8 --select=C90 --exit-zero --max-complexity=10
- name: Test with pytest
run: |
pytest --cov=./ --cov-report=xml
- name: Codecov
uses: codecov/[email protected]