Test with Python 3.12, latest Actions #30
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: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install pytest-cov matplotlib scipy flake8 | |
- name: Test | |
run: | | |
py.test --cov=. --cov-branch --cov-report=xml -v test | |
flake8 pyext/src/ --extend-ignore=F821 | |
flake8 test/ --extend-ignore=F841,E402 | |
- uses: codecov/codecov-action@v1 |